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 RunnerBuilder ¶
type RunnerBuilder[T Runner] func(id string, options ...RunnerOption[T]) (T, error)
type RunnerOption ¶
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.