tester

package
v0.0.0-...-5855316 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2021 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestData

type TestData struct {
	ID         string
	Lang       string
	Filename   string
	Code       string
	Path       string
	Image      string
	TestCount  int
	InputData  []string
	OutputData []string
	TimeLimit  int
	MemLimit   int64
}

TestData contains all test data related to the program to be evaluated

func (*TestData) Run

func (data *TestData) Run(cli *client.Client) TestResult

Run executes tests on the given data and returns evaluation result

type TestResult

type TestResult struct {
	ID      string
	Status  string
	Message string
	Time    []float64
	Memory  []float64
	Result  []string
	Error   []string
}

TestResult contains the evaluation result

Jump to

Keyboard shortcuts

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