Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lifecycle ¶
type Lifecycle struct {
// contains filtered or unexported fields
}
Lifecycle is a testing spy for fx.Lifecycle. It exposes Start and Stop methods (and some test-specific helpers) so that unit tests can exercise hooks.
func (*Lifecycle) MustStart ¶
func (l *Lifecycle) MustStart()
MustStart calls Start, failing the test if an error is encountered.
func (*Lifecycle) MustStop ¶
func (l *Lifecycle) MustStop()
MustStop calls Stop, failing the test if an error is encountered.
Click to show internal directories.
Click to hide internal directories.