TestCase
data class TestCase(val file: String?, val id: Int, val args: List<String>?, val stdin: String?, val file_stdin: String?, val expected: String?, val file_expected: String?, val hide_from_report: List<TestCase.HiddenItem>?, val visibility: TestCase.Visibility, val score: Double?, val valgrind: Valgrind.Config?) : ConfigUnit.TotalScorable
Constructors
Link copied to clipboard
constructor(file: String?, id: Int, args: List<String>?, stdin: String?, file_stdin: String?, expected: String?, file_expected: String?, hide_from_report: List<TestCase.HiddenItem>?, visibility: TestCase.Visibility, score: Double?, valgrind: Valgrind.Config?)
Types
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Flag for whether the file_expected exist, gates access to getFileExpected()
Link copied to clipboard
Flag for whether the file_stdin exist, gates access to getFileStdin()
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Check mutually exclusive fields are not both set (e.g. stdin and file_stdin, expected and file_expected)
Link copied to clipboard
private fun validateFile(fpath: String, fieldname: String, context: ConfigParsable.Context): ErrorUnit.ContextErrorUnit?
Find file with path fpath from the Configuration.Context.provided on the host machine and return ErrorUnit.ContextErrorUnit.FileNotFoundError for missing files.
Link copied to clipboard
Validate helper files in file_stdin and file_expected