Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomEventType ¶
func RandomEventType() sharedDomain.EventType
RandomEventType returns a unique event type for testing.
func VerifyTestMain ¶
VerifyTestMain standardizes goroutine leak checks. We avoid closing the global pool here because other parallel test processes might still be using the shared container.
Types ¶
type PostgreSQLContainer ¶
type PostgreSQLContainer struct {
// contains filtered or unexported fields
}
func (*PostgreSQLContainer) CreateTestDatabase ¶
type RabbitMQContainer ¶
type RabbitMQContainer struct {
// contains filtered or unexported fields
}
func GetGlobalRabbitMQ ¶
func GetGlobalRabbitMQ(t *testing.T) *RabbitMQContainer
func (*RabbitMQContainer) StartTestConsumer ¶
func (r *RabbitMQContainer) StartTestConsumer(t *testing.T, conn *rabbitmq.Conn, exchangeName, exchangeKind, bindingKey string) (<-chan rabbitmq.Delivery, *rabbitmq.Consumer)
StartTestConsumer creates a consumer bound to the specified exchange with the given key.
type RedisContainer ¶
type RedisContainer struct {
// contains filtered or unexported fields
}
func GetGlobalRedis ¶
func GetGlobalRedis(t *testing.T) *RedisContainer
Click to show internal directories.
Click to hide internal directories.