Documentation ¶
Overview ¶
Package checker contains different implementation of the interface defined as github.com/mraron/njudge/pkg/problems.Checker
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ellen ¶
type Ellen struct {
// contains filtered or unexported fields
}
Ellen (an abbreviation of checker in hungarian) checker is used by mester, bíró systems.
Arguments of the checker are:
- Absolute path to testdata
- Absolute path to output data
- Index of testcase to check
Testcases are named in.{x} and out.{x} where x is an 1 indexed integer.
It produces its output to stdout in the following format:
{test_index};{subtest_number};{point_multiplier};{verdict_message}
- test_index: the index received via the argument
- subtest_number: refer to the github.com/mraron/njudge/pkg/problems/config/feladat_txt config's docs
- point_multiplier: 0 or 1, depending on the correctness
- verdict_message: A message displayed to the user (it must not contain ";" or ":" characters)
If there are multiple subtests the same format should be used delimited by a single ":"
type TaskYAML ¶
type TaskYAML struct {
// contains filtered or unexported fields
}
TaskYAML checker format is used by CMS as described in the CMS documentation's Checker and Standard manager output sections.
func NewTaskYAML ¶
type Testlib ¶
type Testlib struct {
// contains filtered or unexported fields
}
Testlib is polygon's default checker format
func NewTestlib ¶
type Whitediff ¶
type Whitediff struct {
// contains filtered or unexported fields
}
Whitediff is the default checker built into CMS
func NewWhitediff ¶
func NewWhitediff(opts ...WhitediffOption) Whitediff
type WhitediffOption ¶
type WhitediffOption func(*Whitediff)
func WhiteDiffWithFs ¶
func WhiteDiffWithFs(answerFs, outputFs afero.Fs) WhitediffOption