Documentation
¶
Index ¶
- func MockClock(t *testing.T) *clock.Mock
- func MockEventsGetAll[T events.Event](t *testing.T, m *MockEvents, predicates ...func(T) bool) []T
- func MockEventsGetSingle[T events.Event](t *testing.T, m *MockEvents, predicates ...func(T) bool) T
- func MockEventsHasNone[T events.Event](t *testing.T, m *MockEvents, predicates ...func(T) bool)
- func MockEventsHasSome[T events.Event](t *testing.T, m *MockEvents, predicates ...func(T) bool) []T
- func MustTransact(t *testing.T, db *sqlx.DB, fn func(ctx ql.TxContext))
- func MustTransactErr(t *testing.T, db *sqlx.DB, fn func(ctx ql.TxContext) error)
- func NewConnection(t *testing.T, schemaTable string) *sqlx.DB
- type MockEvents
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockEventsGetAll ¶
func MockEventsGetSingle ¶
func MockEventsHasNone ¶
func MockEventsHasSome ¶
func MustTransactErr ¶
Types ¶
type MockEvents ¶
func CaptureEvents ¶
func CaptureEvents(t *testing.T) *MockEvents
func (*MockEvents) Close ¶
func (m *MockEvents) Close() error
func (*MockEvents) SendAsync ¶
func (m *MockEvents) SendAsync(_ context.Context, event events.Event)
func (*MockEvents) SendInTx ¶
func (m *MockEvents) SendInTx(ctx context.Context, _ sqlx.ExecerContext, event events.Event) error
Click to show internal directories.
Click to hide internal directories.