pkg

package
v0.0.0-...-bbd6646 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgsRunner

type ArgsRunner interface {
	Args() []*RunnerArg
}

type Executor

type Executor interface {
	Execute(path string, stdin io.Reader, argv []string) (Output, error)
}

type FlagsRunner

type FlagsRunner interface {
	Flags() []*RunnerFlag
}

type Output

type Output struct {
	Stdout string
	Stderr string
}

func (Output) Equals

func (o Output) Equals(o2 Output) bool

type Results

type Results struct {
	Correct  bool
	Expected string
	Actual   string
}

type Runner

type Runner interface {
	Init(args []string, executor Executor) error

	// Run runs the tests
	Run(emitTestResults chan Results, rtArgv []string)
}

type RunnerArg

type RunnerArg struct {
	DisplayName      string
	RequiredExecutor *Executor
	ArgRequired      bool
}

type RunnerFlag

type RunnerFlag struct {
	Name         string
	Shorthand    [3]byte
	Help         string
	DefaultValue interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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