Documentation ¶
Index ¶
- Variables
- func AssertError(t *testing.T, err error, expectErr bool)
- func GenerateAnyArgsSlice(n int) []driver.Value
- func InitPostgresContainer(ctx context.Context) (*postgres.PostgresContainer, error)
- func MockLockedOutboxLock(mock sqlmock.Sqlmock, dispatcherId uuid.UUID) *sqlmock.Rows
- func MockOutboxRows(mock sqlmock.Sqlmock) *sqlmock.Rows
- func MockSubscriptionRowsAllActive(mock sqlmock.Sqlmock) *sqlmock.Rows
- func MockSubscriptionRowsWithOneExpired(mock sqlmock.Sqlmock) *sqlmock.Rows
- func MockUnlockedOutboxLock(mock sqlmock.Sqlmock, dispatcherId uuid.UUID) *sqlmock.Rows
- type MockedKafkaEvent
- type MockedKafkaProducer
- type MockedTallyCounter
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCtxKey any = "myKey"
Functions ¶
func GenerateAnyArgsSlice ¶
func InitPostgresContainer ¶
func InitPostgresContainer(ctx context.Context) (*postgres.PostgresContainer, error)
InitPostgresContainer initializes a local Postgres instance using Testcontainers.
func MockLockedOutboxLock ¶
func MockOutboxRows ¶
func MockOutboxRows(mock sqlmock.Sqlmock) *sqlmock.Rows
func MockSubscriptionRowsAllActive ¶
func MockSubscriptionRowsAllActive(mock sqlmock.Sqlmock) *sqlmock.Rows
func MockSubscriptionRowsWithOneExpired ¶
func MockSubscriptionRowsWithOneExpired(mock sqlmock.Sqlmock) *sqlmock.Rows
func MockUnlockedOutboxLock ¶
Types ¶
type MockedKafkaEvent ¶
type MockedKafkaEvent struct{}
func (*MockedKafkaEvent) String ¶
func (*MockedKafkaEvent) String() string
type MockedKafkaProducer ¶
type MockedTallyCounter ¶
func (*MockedTallyCounter) Inc ¶
func (c *MockedTallyCounter) Inc(delta int64)
Click to show internal directories.
Click to hide internal directories.