runner

package
v0.0.0-...-8221b33 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultSetSize = 1

The default number of runners into a set of runners.

Variables

View Source
var (
	ErrNoRunner           = errors.New("no runner to reserve")
	ErrWrongRunnerSetSize = errors.New("a runner set must have at least size 1")
)

Functions

This section is empty.

Types

type RunResults

type RunResults struct {
	Results     []bool
	RunningTime time.Duration
}

type Runner

type Runner interface {
	ResetApplication() error
	Delete() error
	Run(tests []string) ([]bool, error)
	Id() string
}

type RunnerBuilder

type RunnerBuilder[T Runner] func(id string, options ...RunnerOption[T]) (T, error)

type RunnerOption

type RunnerOption[T Runner] func(runner T) error

type RunnerSet

type RunnerSet struct {
	// contains filtered or unexported fields
}

RunnerSet represents a group of runners used to run a test suites.

func NewRunnerSet

func NewRunnerSet[T Runner](size int, builder RunnerBuilder[T], options ...RunnerOption[T]) (*RunnerSet, error)

NewRunnerSet creates a new set of runner with the provided configuration. If there is an error in creating the set of runners, it is returned.

func (*RunnerSet) Delete

func (r *RunnerSet) Delete() error

Delete releases all the resources needed by the set of runners. If there is an error in the process, it is returned.

func (*RunnerSet) RunSchedule

func (r *RunnerSet) RunSchedule(schedule []string) (RunResults, error)

func (*RunnerSet) Size

func (r *RunnerSet) Size() int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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