executor

package
Version: v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: MIT Imports: 7 Imported by: 52

Documentation

Index

Constants

View Source
const (
	Idle      = "idle"
	Executing = "executing"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcurrentTester

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

func NewConcurrentTester

func NewConcurrentTester(shell contract.Shell) *ConcurrentTester

func (*ConcurrentTester) SetBatchSize

func (self *ConcurrentTester) SetBatchSize(batchSize int)

func (*ConcurrentTester) TestAll

func (self *ConcurrentTester) TestAll(folders []*contract.Package)

type Executor

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

func NewExecutor

func NewExecutor(tester Tester, parser Parser, ch chan chan string) *Executor

func (*Executor) ClearStatusFlag

func (self *Executor) ClearStatusFlag() bool

func (*Executor) ExecuteTests

func (self *Executor) ExecuteTests(folders []*contract.Package) *contract.CompleteOutput

func (*Executor) Status

func (self *Executor) Status() string

type Parser

type Parser interface {
	Parse([]*contract.Package)
}

type Tester

type Tester interface {
	SetBatchSize(batchSize int)
	TestAll(folders []*contract.Package)
}

Jump to

Keyboard shortcuts

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