Documentation
¶
Overview ¶
Package features hosts types that are used to define a feature tests and other related types.
Index ¶
- func FilterStepsByName(steps []types.Step, regexName *regexp.Regexp) []types.Step
- func GetStepsByLevel(steps []types.Step, l types.Level) []types.Step
- type Feature
- type FeatureBuilder
- func (b *FeatureBuilder) Assess(desc string, fn Func) *FeatureBuilder
- func (b *FeatureBuilder) Feature() types.Feature
- func (b *FeatureBuilder) Setup(fn Func) *FeatureBuilder
- func (b *FeatureBuilder) Teardown(fn Func) *FeatureBuilder
- func (b *FeatureBuilder) WithLabel(key, value string) *FeatureBuilder
- type Func
- type Labels
- type Level
- type Step
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterStepsByName ¶
func FilterStepsByName(steps []types.Step, regexName *regexp.Regexp) []types.Step
func GetStepsByLevel ¶
func GetStepsByLevel(steps []types.Step, l types.Level) []types.Step
Types ¶
type FeatureBuilder ¶
type FeatureBuilder struct {
// contains filtered or unexported fields
}
FeatureBuilder represents is a type to define a testable feature
func (*FeatureBuilder) Assess ¶
func (b *FeatureBuilder) Assess(desc string, fn Func) *FeatureBuilder
Assess adds an assessment step to the feature test.
func (*FeatureBuilder) Feature ¶
func (b *FeatureBuilder) Feature() types.Feature
Feature returns a feature configured by builder.
func (*FeatureBuilder) Setup ¶
func (b *FeatureBuilder) Setup(fn Func) *FeatureBuilder
Setup adds a new setup step that will be applied prior to feature test.
Click to show internal directories.
Click to hide internal directories.