Documentation
¶
Index ¶
- func RunMigrations(ctx context.Context, pool *database.Pool, packageDir string) error
- func SetupIntegrationContext(t *testing.T, pool *database.Pool) context.Context
- func SetupLogger(t *testing.T) *logger.Logger
- func SetupTestOrgAndUser(t *testing.T, ctx context.Context, pool *database.Pool) (orgUID, userUID uuid.UUID)
- type PostgresTestContainer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunMigrations ¶
func SetupIntegrationContext ¶
Types ¶
type PostgresTestContainer ¶
type PostgresTestContainer struct {
Container testcontainers.Container
Pool *database.Pool
}
func StartPostgresContainer ¶
func StartPostgresContainer(ctx context.Context) (*PostgresTestContainer, error)
Click to show internal directories.
Click to hide internal directories.