runner

package
v0.0.0-...-1e302dd Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDeadlineExceeded = errors.New("command timed out (" + strconv.Itoa(conf.TimeoutSec) + "s)")
View Source
var ErrNoTestResult = errors.New("no test result")
View Source
var ErrResultMismatch = errors.New("result not matched")

Functions

func AddSuite

func AddSuite(fileName string, file multipart.File) error

func DeleteCompiled

func DeleteCompiled(runDir string) error

func DeleteSuite

func DeleteSuite(suiteName string) error

Types

type CompileResult

type CompileResult struct {
	RunDir    string
	SuiteName string
}

func Compile

func Compile(answer string, answerFileName string, suiteName string) (*CompileResult, error)

type Result

type Result struct {
	Name           string
	Error          string
	ResultExpected string
	ResultGot      string
	Dir            string
}

func Run

func Run(runDir string, caseDirs []string) ([]Result, error)

type TestSuite

type TestSuite struct {
	Name      string
	Total     int
	TestCases []string
}

func GetSuite

func GetSuite(suiteName string) (*TestSuite, error)

func GetSuites

func GetSuites() ([]TestSuite, error)

Jump to

Keyboard shortcuts

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