Documentation
¶
Index ¶
- Variables
- func GetProjectRoot() string
- func RandStringBytes(n int) string
- func ResetDatabaseEnv(t *testing.T)
- func SetupPostgres(ctx context.Context, t *testing.T) testcontainers.Container
- func ShutdownContainer(ctx context.Context, t *testing.T, container testcontainers.Container)
- type GeneratedContainerReport
- type PostgresContainer
Constants ¶
This section is empty.
Variables ¶
View Source
var ProjectRootPattern = regexp.MustCompile(`^(.*aws-weather-api).*`)
View Source
var TestDataPath = path.Join(GetProjectRoot(), "test", "data")
Functions ¶
func GetProjectRoot ¶
func GetProjectRoot() string
func RandStringBytes ¶
func ResetDatabaseEnv ¶
func SetupPostgres ¶
func ShutdownContainer ¶
Types ¶
type GeneratedContainerReport ¶
type GeneratedContainerReport struct {
Container testcontainers.Container
Host string
Port string
}
type PostgresContainer ¶
Click to show internal directories.
Click to hide internal directories.