Documentation ¶
Index ¶
- Constants
- type Arg
- type Args
- type Body
- type Feature
- func (feature *Feature) AddScenario(scenario *Scenario)
- func (feature *Feature) AfterHooksByTag(tags []string) []*Hook
- func (feature *Feature) BeforeHooksByTag(tags []string) []*Hook
- func (feature *Feature) Description() string
- func (feature *Feature) Includes() Includes
- func (feature *Feature) Input() *Input
- func (feature *Feature) Join(include *Feature)
- func (feature *Feature) LoadVariables(ctx context.FeatureContext) errors.Error
- func (feature *Feature) Path() string
- func (feature *Feature) Scenarios() []*Scenario
- func (feature *Feature) SetPath(path string)
- func (feature *Feature) Vars() Vars
- type Func
- type Functions
- type Given
- type Hook
- type Hooks
- type Include
- type Includes
- type Input
- type Return
- type Scenario
- func (s *Scenario) ContinueOnError(ctx *hcl.EvalContext) bool
- func (s *Scenario) Examples(ctx context.FeatureContext) ([]map[string]cty.Value, errors.Error)
- func (s *Scenario) Execute(ctx context.FeatureContext) errors.Error
- func (s *Scenario) IsIgnored(ctx *hcl.EvalContext) bool
- func (s *Scenario) Sections() Sections
- func (s *Scenario) String() string
- func (s *Scenario) Tags() []string
- func (s *Scenario) Validate() errors.Error
- type Section
- type Sections
- type Then
- type Vars
- type VarsList
- type When
Constants ¶
View Source
const ( HookBefore = "before" HookAfter = "after" )
View Source
const (
ArgDefault = "default"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feature ¶
type Feature struct {
// contains filtered or unexported fields
}
Feature list of scenarios.
func DecodeFeature ¶
func (*Feature) AddScenario ¶
func (*Feature) AfterHooksByTag ¶
func (*Feature) BeforeHooksByTag ¶
func (*Feature) Description ¶
func (*Feature) LoadVariables ¶
func (feature *Feature) LoadVariables(ctx context.FeatureContext) errors.Error
type Given ¶
type Given struct {
// contains filtered or unexported fields
}
Given represents the stage in a schemaScenario in which the preconditions must be declared and the data are initialized.
func (Given) Description ¶
func (s Given) Description() string
func (Given) SetDescription ¶
func (s Given) SetDescription(description string)
func (Given) TotalActions ¶
func (s Given) TotalActions() int
type Hook ¶
type Hook struct {
// contains filtered or unexported fields
}
func (*Hook) TotalActions ¶
type Input ¶
type Input struct {
// contains filtered or unexported fields
}
Input represents the list of variables to be provided.
type Scenario ¶
type Scenario struct {
// contains filtered or unexported fields
}
Scenario represents a single schemaScenario to be tested. A schemaScenario is composed by the Given-Block-Then blocks.
func (*Scenario) ContinueOnError ¶
type Then ¶
type Then struct {
// contains filtered or unexported fields
}
Then represents the stage in a schemaScenario in which the assertions take place.
func (Then) Description ¶
func (s Then) Description() string
func (Then) SetDescription ¶
func (s Then) SetDescription(description string)
func (Then) TotalActions ¶
func (s Then) TotalActions() int
type When ¶
type When struct {
// contains filtered or unexported fields
}
When represents the stage in a schemaScenario in which we perform the actions or actions to be tested.
func (When) Description ¶
func (s When) Description() string
func (When) SetDescription ¶
func (s When) SetDescription(description string)
func (When) TotalActions ¶
func (s When) TotalActions() int
Click to show internal directories.
Click to hide internal directories.