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
- func (b *FeatureBuilder) WithStep(name string, level Level, fn Func) *FeatureBuilder
- type Func
- type Labels
- type Level
- type Step
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterStepsByName ¶
Types ¶
type FeatureBuilder ¶
type FeatureBuilder struct {
// contains filtered or unexported fields
}
FeatureBuilder represents is a type to define a testable feature
func New ¶
func New(name string) *FeatureBuilder
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.
func (*FeatureBuilder) Teardown ¶
func (b *FeatureBuilder) Teardown(fn Func) *FeatureBuilder
Teardown adds a new teardown step that will be applied after feature test.
func (*FeatureBuilder) WithLabel ¶
func (b *FeatureBuilder) WithLabel(key, value string) *FeatureBuilder
WithLabel adds a test label key/value pair
func (*FeatureBuilder) WithStep ¶ added in v0.0.4
func (b *FeatureBuilder) WithStep(name string, level Level, fn Func) *FeatureBuilder
WithStep adds a new step that will be applied prior to feature test.
Click to show internal directories.
Click to hide internal directories.