Documentation
¶
Index ¶
- type Actions
- type Consequences
- func (c *Consequences) Given() *Context
- func (c *Consequences) Healthy(block func(healthy bool)) *Consequences
- func (c *Consequences) Services(block func(services *notification.ServiceList, err error)) *Consequences
- func (c *Consequences) Templates(block func(services *notification.TemplateList, err error)) *Consequences
- func (c *Consequences) Triggers(block func(services *notification.TriggerList, err error)) *Consequences
- func (c *Consequences) When() *Actions
- type Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actions ¶
type Actions struct {
// contains filtered or unexported fields
}
this implements the "when" part of given/when/then
none of the func implement error checks, and that is complete intended, you should check for errors using the Then()
func (*Actions) Healthcheck ¶
func (*Actions) SetParamInNotificationConfigMap ¶
func (*Actions) Then ¶
func (a *Actions) Then() *Consequences
type Consequences ¶
type Consequences struct {
// contains filtered or unexported fields
}
this implements the "then" part of given/when/then
func (*Consequences) Given ¶
func (c *Consequences) Given() *Context
func (*Consequences) Healthy ¶
func (c *Consequences) Healthy(block func(healthy bool)) *Consequences
func (*Consequences) Services ¶
func (c *Consequences) Services(block func(services *notification.ServiceList, err error)) *Consequences
func (*Consequences) Templates ¶
func (c *Consequences) Templates(block func(services *notification.TemplateList, err error)) *Consequences
func (*Consequences) Triggers ¶
func (c *Consequences) Triggers(block func(services *notification.TriggerList, err error)) *Consequences
func (*Consequences) When ¶
func (c *Consequences) When() *Actions
type Context ¶
Context implements the "given" part of given/when/then. It embeds fixture.TestState to provide test-specific state that enables parallel test execution.
func GivenWithSameState ¶
func GivenWithSameState(ctx fixture.TestContext) *Context
GivenWithSameState creates a new Context that shares the same TestState as an existing context. Use this when you need multiple fixture contexts within the same test.
Click to show internal directories.
Click to hide internal directories.