Documentation
ΒΆ
Index ΒΆ
- Constants
- type DSL
- func AfterAll(fallibles ...Fallible) DSL
- func AfterEach(fallibles ...Fallible) DSL
- func BeforeAll(fallibles ...Fallible) DSL
- func BeforeEach(fallibles ...Fallible) DSL
- func Context(title string, body ...DSL) DSL
- func Describe(title string, body ...DSL) DSL
- func Group(title string, body ...DSL) (ret DSL)
- func Hook(ba, be, ae, aa bool, fallibles ...Fallible) (ret DSL)
- func Inline(fallibles ...Fallible) DSL
- func It(title string, fallibles ...Fallible) DSL
- func Spec(title string, fallibles ...Fallible) (ret DSL)
- type DSLKind
- type EngineGroup
- type EngineHook
- type EngineSpec
- type EngineSuite
- type Fallible
- type Handler
Constants ΒΆ
View Source
const ( DSLGroupKind = DSLKind(0) DSLHookKind = DSLKind(1) DSLSpecKind = DSLKind(2) )
Variables ΒΆ
This section is empty.
Functions ΒΆ
This section is empty.
Types ΒΆ
type DSL ΒΆ
type DSL struct {
Kind DSLKind
Group EngineGroup
Hook EngineHook
Spec EngineSpec
}
func BeforeEach ΒΆ
type EngineGroup ΒΆ
type EngineGroup struct {
Title string
Hooks []EngineHook
Specs []EngineSpec
Groups []EngineGroup
}
func (EngineGroup) Alive ΒΆ
func (it EngineGroup) Alive() bool
func (EngineGroup) Run ΒΆ
func (it EngineGroup) Run(hooks []EngineHook) (ret []error)
type EngineHook ΒΆ
type EngineHook struct {
Flags struct {
BeforeAll bool
BeforeEach bool
AfterEach bool
AfterAll bool
}
Fallibles []Fallible
}
func (EngineHook) Run ΒΆ
func (it EngineHook) Run() (ret []error)
type EngineSpec ΒΆ
func (EngineSpec) Alive ΒΆ
func (it EngineSpec) Alive() bool
func (EngineSpec) Run ΒΆ
func (it EngineSpec) Run(hooks []EngineHook) (ret []error)
type EngineSuite ΒΆ
type EngineSuite struct {
Group EngineGroup
}
func Suite ΒΆ
func Suite(body ...DSL) (ret EngineSuite)
func (EngineSuite) Handle ΒΆ
func (it EngineSuite) Handle(handler Handler)
Source Files
ΒΆ
Click to show internal directories.
Click to hide internal directories.