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

Link copied to clipboard
object Companion
Link copied to clipboard

Enum for indicating what should be hidden from report

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val file: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: Int
Link copied to clipboard
open override val score: Double?
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
private var validFileStdin: Boolean

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