leafnodes

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2015 License: MIT, Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicNode

type BasicNode interface {
	Type() types.SpecComponentType
	Run() (types.SpecState, types.SpecFailure)
	CodeLocation() types.CodeLocation
}

type ItNode

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

func NewItNode

func NewItNode(text string, body interface{}, flag types.FlagType, codeLocation types.CodeLocation, timeout time.Duration, failer *failer.Failer, componentIndex int) *ItNode

func (*ItNode) CodeLocation

func (node *ItNode) CodeLocation() types.CodeLocation

func (*ItNode) Flag

func (node *ItNode) Flag() types.FlagType

func (*ItNode) Run

func (node *ItNode) Run() (outcome types.SpecState, failure types.SpecFailure)

func (*ItNode) Samples

func (node *ItNode) Samples() int

func (*ItNode) Text

func (node *ItNode) Text() string

func (*ItNode) Type

func (node *ItNode) Type() types.SpecComponentType

type MeasureNode

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

func NewMeasureNode

func NewMeasureNode(text string, body interface{}, flag types.FlagType, codeLocation types.CodeLocation, samples int, failer *failer.Failer, componentIndex int) *MeasureNode

func (*MeasureNode) CodeLocation

func (node *MeasureNode) CodeLocation() types.CodeLocation

func (*MeasureNode) Flag

func (node *MeasureNode) Flag() types.FlagType

func (*MeasureNode) MeasurementsReport

func (node *MeasureNode) MeasurementsReport() map[string]*types.SpecMeasurement

func (*MeasureNode) Run

func (node *MeasureNode) Run() (outcome types.SpecState, failure types.SpecFailure)

func (*MeasureNode) Samples

func (node *MeasureNode) Samples() int

func (*MeasureNode) Text

func (node *MeasureNode) Text() string

func (*MeasureNode) Type

func (node *MeasureNode) Type() types.SpecComponentType

type SetupNode

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

func NewAfterEachNode

func NewAfterEachNode(body interface{}, codeLocation types.CodeLocation, timeout time.Duration, failer *failer.Failer, componentIndex int) *SetupNode

func NewBeforeEachNode

func NewBeforeEachNode(body interface{}, codeLocation types.CodeLocation, timeout time.Duration, failer *failer.Failer, componentIndex int) *SetupNode

func NewJustBeforeEachNode

func NewJustBeforeEachNode(body interface{}, codeLocation types.CodeLocation, timeout time.Duration, failer *failer.Failer, componentIndex int) *SetupNode

func (*SetupNode) CodeLocation

func (node *SetupNode) CodeLocation() types.CodeLocation

func (*SetupNode) Run

func (node *SetupNode) Run() (outcome types.SpecState, failure types.SpecFailure)

func (*SetupNode) Type

func (node *SetupNode) Type() types.SpecComponentType

type SubjectNode

type SubjectNode interface {
	BasicNode

	Text() string
	Flag() types.FlagType
	Samples() int
}

type SuiteNode

type SuiteNode interface {
	Run(parallelNode int, parallelTotal int, syncHost string) bool
	Passed() bool
	Summary() *types.SetupSummary
}

func NewAfterSuiteNode

func NewAfterSuiteNode(body interface{}, codeLocation types.CodeLocation, timeout time.Duration, failer *failer.Failer) SuiteNode

func NewBeforeSuiteNode

func NewBeforeSuiteNode(body interface{}, codeLocation types.CodeLocation, timeout time.Duration, failer *failer.Failer) SuiteNode

func NewSynchronizedAfterSuiteNode

func NewSynchronizedAfterSuiteNode(bodyA interface{}, bodyB interface{}, codeLocation types.CodeLocation, timeout time.Duration, failer *failer.Failer) SuiteNode

func NewSynchronizedBeforeSuiteNode

func NewSynchronizedBeforeSuiteNode(bodyA interface{}, bodyB interface{}, codeLocation types.CodeLocation, timeout time.Duration, failer *failer.Failer) SuiteNode

Jump to

Keyboard shortcuts

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