Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompileContext ¶
type Problem ¶
type Problem interface { Compile(context.Context, CompileContext) error GetExecutables() ([]ProblemExecutable, error) GetTestSets() ([]ProblemTestSet, error) GetStatements() ([]ProblemStatement, error) }
type ProblemExecutable ¶
type ProblemExecutableKind ¶
type ProblemExecutableKind string
const ( TestlibChecker ProblemExecutableKind = "testlib_checker" TestlibInteractor ProblemExecutableKind = "testlib_interactor" )
type ProblemKind ¶
type ProblemKind string
const ( PolygonProblem ProblemKind = "polygon" CompiledProblem ProblemKind = "compiled" )
type ProblemPointsPolicy ¶
type ProblemPointsPolicy string
const ( EachTestPointsPolicy ProblemPointsPolicy = "each_test" CompleteGroupPointsPolicy ProblemPointsPolicy = "complete_group" )
type ProblemResource ¶
type ProblemStatement ¶
type ProblemStatement interface { Locale() string GetConfig() (models.ProblemStatementConfig, error) GetResources() ([]ProblemResource, error) }
type ProblemTest ¶
type ProblemTestGroup ¶
type ProblemTestGroup interface { Name() string PointsPolicy() ProblemPointsPolicy }
type ProblemTestSet ¶
type ProblemTestSet interface { Name() string TimeLimit() int64 MemoryLimit() int64 GetTests() ([]ProblemTest, error) GetGroups() ([]ProblemTestGroup, error) }
Click to show internal directories.
Click to hide internal directories.