Versions in this module Expand all Collapse all v1 v1.0.1 Aug 23, 2026 v1.0.0 Aug 23, 2026 Changes in this version + type Counts struct + Acked int + Dropped int + Nak int + Term int + type Entry struct + At time.Time + ID string + Result source.Result + type Harness struct + func NewHarness(tb testing.TB, opts []source.Option, msgs ...Msg) *Harness + func NewHarnessWith(tb testing.TB, opts []source.Option, inletOpts []Option, msgs ...Msg) *Harness + func (h *Harness) AssertCounts(want Counts) + func (h *Harness) AssertSettled(n int) + func (h *Harness) Hopper() *source.Hopper + func (h *Harness) Inlet() *Inlet + func (h *Harness) Ledger() *Ledger + func (h *Harness) Run(handler source.Handler) + func (h *Harness) RunBatch(bh source.BatchHandler) + func (h *Harness) RunBatchFor(timeout time.Duration, bh source.BatchHandler) + func (h *Harness) RunFor(timeout time.Duration, handler source.Handler) + type Inlet struct + func New(opts ...Option) *Inlet + func (in *Inlet) Close() error + func (in *Inlet) Ledger() *Ledger + func (in *Inlet) Queue(msgs ...Msg) + func (in *Inlet) Subscribe(_ context.Context, _ source.SubscribeConfig) (source.Subscription, error) + type Ledger struct + func (l *Ledger) Counts() Counts + func (l *Ledger) Entries() []Entry + func (l *Ledger) IDs() []string + func (l *Ledger) Len() int + type Msg struct + Headers source.Headers + Key string + PartitionKey string + Subject string + Value []byte + type Option func(*Inlet) + func WithBatched() Option + func WithClock(now func() time.Time) Option + func WithIDFunc(next func() string) Option + func WithMessages(msgs ...Msg) Option