Documentation
¶
Index ¶
- func InitAuthContext(t *testing.T, ctx context.Context, conn *pgxpool.Pool, ...) context.Context
- func NewLogger(*testing.T) *slog.Logger
- func NewMeterProvider(t *testing.T) metric.MeterProvider
- func NewTemporalDevServer(t *testing.T, ctx context.Context) (*testsuite.DevServer, error)
- func NewTestcontainersLogger() log.Logger
- func NewTracerProvider(t *testing.T) trace.TracerProvider
- func ReadFixture(t *testing.T, path string) []byte
- type Environment
- type PostgresDBCloneFunc
- type RedisClientFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitAuthContext ¶
func NewMeterProvider ¶
func NewMeterProvider(t *testing.T) metric.MeterProvider
func NewTemporalDevServer ¶
func NewTestcontainersLogger ¶
func NewTracerProvider ¶
func NewTracerProvider(t *testing.T) trace.TracerProvider
Types ¶
type Environment ¶
type Environment struct { CloneTestDatabase PostgresDBCloneFunc NewRedisClient RedisClientFunc NewTemporalClient func(t *testing.T) (client client.Client, server *testsuite.DevServer) }
type PostgresDBCloneFunc ¶
func NewTestPostgres ¶
func NewTestPostgres(ctx context.Context) (*postgres.PostgresContainer, PostgresDBCloneFunc, error)
NewTestPostgres creates a new Postgres container with a template database built from a SQL init script. A reference to the container is returned as well as a function to create test databases from the template. All "clone" databases are automatically dropped when the test ends using t.Cleanup() hooks.
type RedisClientFunc ¶
func NewTestRedis ¶
func NewTestRedis(ctx context.Context) (*tcr.RedisContainer, RedisClientFunc, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.