eval

package
v0.0.0-...-1388524 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Evaluator

type Evaluator struct {
	EvaluateAll bool
	EvalCache   map[string]outcome
	// contains filtered or unexported fields
}

func NewEvaluator

func NewEvaluator(root string, program runners.Program, validator runners.Program) (*Evaluator, error)

func (*Evaluator) Evaluate

func (e *Evaluator) Evaluate(testGroups []*runpb.TestGroup, timeLimMs int32, memLimitKb int32, results chan<- *Result) error

type Result

type Result struct {
	TimeUsageMs       int32
	Score             int32
	TestCaseVerdict   runpb.Verdict
	TestGroupVerdict  runpb.Verdict
	SubmissionVerdict runpb.Verdict
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL