Documentation ¶
Index ¶
- func BoolP(input bool) *bool
- func CompareStringSlices(t *testing.T, this, that []string)
- func GetEnvOrDefault(key, fallback string) string
- func Int64P(input int64) *int64
- func StringP(input string) *string
- func StringSlicesEqual(t *testing.T, this, that []string) bool
- func WaitForContainerExit0(t *testing.T, pool *dockertest.Pool, containerID string) error
- type RandomPortSupplier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareStringSlices ¶
CompareStringSlices cpmpares if two string slices have the same length and same values.
func GetEnvOrDefault ¶
GetEnvOrDefault returns the value of an environment variable or fallback value, if environment variable is undefined or empty.
func StringSlicesEqual ¶
StringSlicesEqual compares two slices without failing the test.
func WaitForContainerExit0 ¶
WaitForContainerExit0 waits for the container to exist with code 0.
Types ¶
type RandomPortSupplier ¶
type RandomPortSupplier interface { Cleanup() Discover() error DiscoveredHost() (string, bool) DiscoveredPort() (string, bool) }
RandomPortSupplier wraps the functionality for random port handling in tests.
func NewRandomPortSupplier ¶
func NewRandomPortSupplier() (RandomPortSupplier, error)
NewRandomPortSupplier creates an initialized instance of a random port supplier.
Click to show internal directories.
Click to hide internal directories.