test

package
v0.0.0-...-5805fc1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2015 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTester

func RegisterTester(t Tester, f TesterFunc)

RegisterTester registers a function to be called lated via Call. It is usually called from the init function of a package that contains a Tester.

Types

type ErrMissingParam

type ErrMissingParam string

func (ErrMissingParam) Error

func (e ErrMissingParam) Error() string

type Tester

type Tester int
const (
	Simple Tester = 1 + iota
	Junit
	Diff
	IO
	Robot
	CoderJunit
	SpringInt
)

func (Tester) Call

func (t Tester) Call(ctx context.Context, test model.KeyedTest, sub model.KeyedSubmission, ball io.Reader) error

Call looks up a registered Resulter and calls it.

type TesterFunc

type TesterFunc func(ctx context.Context, t model.KeyedTest, sub model.KeyedSubmission, ball io.Reader) error

Jump to

Keyboard shortcuts

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