Documentation
¶
Overview ¶
Package testkit runs real SDK handlers without sockets or a Manager checkout
Index ¶
- type Clock
- type Recorder
- func (r *Recorder) AssertContexts(allowed ...string) error
- func (r *Recorder) Drain() []sdk.Event
- func (r *Recorder) Expect(expected []sdk.Event) error
- func (r *Recorder) Poll(ctx context.Context, handler sdk.Handler) error
- func (r *Recorder) Replay(ctx context.Context, handler sdk.Handler, events []sdk.Event) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clock ¶
type Clock struct {
// contains filtered or unexported fields
}
type Recorder ¶
type Recorder struct {
Client *sdk.Client
History []sdk.Event
// contains filtered or unexported fields
}
func (*Recorder) AssertContexts ¶
Reject outbound events addressed outside the allowed contexts
func (*Recorder) Drain ¶
func (r *Recorder) Drain() []sdk.Event
Drain the currently captured outbound events
Click to show internal directories.
Click to hide internal directories.