Documentation
¶
Index ¶
- Variables
- func CheckIntegrationTest(t *testing.T)
- func CreateTestLogger(t *testing.T) *logging.Logger
- func CreateTestRedisClient(t *testing.T) *redis.Client
- func CreateTestRedisConfig(t *testing.T) *internalredis.RedisConfig
- func DeclareTestAWSInfrastructure(ctx context.Context, cfg *mqs.AWSSQSConfig, attributes map[string]string) (string, error)
- func DeclareTestRabbitMQInfrastructure(ctx context.Context, config *mqs.RabbitMQConfig) error
- func ExtractRabbitPassword(endpoint string) string
- func ExtractRabbitURL(endpoint string) string
- func ExtractRabbitUsername(endpoint string) string
- func Integration(t *testing.T)
- func MustMarshalJSON(v any) []byte
- func NewMockEventTracer(exporter traceSDK.SpanExporter) *mockEventTracerImpl
- func Race(t *testing.T)
- func RandomPort() string
- func RandomPortNumber() int
- func RandomString(length int) string
- func TeardownTestRabbitMQInfrastructure(ctx context.Context, cfg *mqs.RabbitMQConfig) error
- type MockMsg
Constants ¶
This section is empty.
Variables ¶
View Source
var DeliveryFactory = &mockDeliveryFactory{}
View Source
var DestinationFactory = &mockDestinationFactory{}
View Source
var EventFactory = &mockEventFactory{}
View Source
var Registry destregistry.Registry
View Source
var TestTopics = []string{
"user.created",
"user.deleted",
"user.updated",
}
must be sorted
Functions ¶
func CheckIntegrationTest ¶
func CreateTestRedisClient ¶
func CreateTestRedisConfig ¶
func CreateTestRedisConfig(t *testing.T) *internalredis.RedisConfig
func DeclareTestRabbitMQInfrastructure ¶
func DeclareTestRabbitMQInfrastructure(ctx context.Context, config *mqs.RabbitMQConfig) error
func ExtractRabbitPassword ¶
ExtractRabbitPassword extracts the password from the endpoint for example: amqp://u:p@localhost:5672 -> p
func ExtractRabbitURL ¶
ExtractRabbitURL extracts the address from the endpoint for example: amqp://guest:guest@localhost:5672 -> localhost:5672
func ExtractRabbitUsername ¶
ExtractRabbitUsername extracts the username from the endpoint for example: amqp://u:p@localhost:5672 -> u
func Integration ¶
func MustMarshalJSON ¶
func NewMockEventTracer ¶
func NewMockEventTracer(exporter traceSDK.SpanExporter) *mockEventTracerImpl
func RandomPortNumber ¶
func RandomPortNumber() int
func RandomString ¶
func TeardownTestRabbitMQInfrastructure ¶
func TeardownTestRabbitMQInfrastructure(ctx context.Context, cfg *mqs.RabbitMQConfig) error
Types ¶
Click to show internal directories.
Click to hide internal directories.