Documentation ¶
Overview ¶
Package compileandrun : package for testing the compiled programming languages
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Init ¶
type Init struct { Solution int // -- number of tested solution Format string // -- solution file format (with a dot) Path string // -- path to the solution file Compiler string // -- chosen compiler CompilerArgs []string // -- compiler command line arguments CompilerAttr os.ProcAttr // -- compiler attributes TestsPath string // -- path to tests data files TestsNumber int // -- number of tests RunArgs []string // -- run command line arguments RunAttr os.ProcAttr // -- run attributes RequiredRet int // -- required return value RunLimits Limits // -- run program limits }
Init : Initializing structure
type Limits ¶
type Limits struct { TL time.Duration // -- time limit RTL time.Duration // -- real time limit ML int64 // -- memory limit }
Limits : Structure with limits of a run
type Result ¶
type Result struct { TestNumber int // -- number of used test ReturnedValue int // -- value returned from the process Time float64 // -- used time Memory int64 // -- used memory Verdict string // -- result of limits and returned value checking Checker string // -- result of answer checking }
Result : Reporting structure
Click to show internal directories.
Click to hide internal directories.