Documentation ¶
Index ¶
- Constants
- Variables
- type Params
- type TestHelper
- func (t *TestHelper) AssertEqual(want, got interface{})
- func (t *TestHelper) AssertEqualMaps(want, got map[string]string)
- func (t *TestHelper) AssertEqualSlices(want, got []string)
- func (t *TestHelper) AssertEquivalentSlices(want, got []string)
- func (t *TestHelper) AssertError(e error, msg string)
- func (t *TestHelper) AssertFalse(got bool)
- func (t *TestHelper) AssertNil(i interface{})
- func (t *TestHelper) AssertNoError(e error)
- func (t *TestHelper) AssertNotEqual(want, got interface{})
- func (t *TestHelper) AssertNotNil(i interface{})
- func (t *TestHelper) AssertOneOf(want []string, got string)
- func (t *TestHelper) AssertQuiet(message string)
- func (t *TestHelper) AssertTrue(got bool)
- func (t *TestHelper) GetFixture(fx string) string
Constants ¶
View Source
const ( // Docker setup EnvDockerHost = "DREGSY_TEST_DOCKERHOST" // ECR EnvAccessKeyID = "AWS_ACCESS_KEY_ID" EnvSecretAccessKey = "AWS_SECRET_ACCESS_KEY" EnvECRRegistry = "DREGSY_TEST_ECR_REGISTRY" EnvECRRepo = "DREGSY_TEST_ECR_REPO" EnvECRPubRegistry = "DREGSY_TEST_ECR_PUB_REGISTRY" EnvECRPubRepo = "DREGSY_TEST_ECR_PUB_REPO" // GCP EnvGCPCreds = "GOOGLE_APPLICATION_CREDENTIALS" // GCR EnvGCRHost = "DREGSY_TEST_GCR_HOST" EnvGCRProject = "DREGSY_TEST_GCR_PROJECT" EnvGCRImage = "DREGSY_TEST_GCR_IMAGE" // GAR EnvGARHost = "DREGSY_TEST_GAR_HOST" EnvGARProject = "DREGSY_TEST_GAR_PROJECT" EnvGARImage = "DREGSY_TEST_GAR_IMAGE" // Dockerhub EnvDockerhubUser = "DREGSY_TEST_DOCKERHUB_USER" EnvDockerhubPass = "DREGSY_TEST_DOCKERHUB_PASS" )
Variables ¶
View Source
var StackTraceDepth = 1
Functions ¶
This section is empty.
Types ¶
type Params ¶
type TestHelper ¶
func NewTestHelper ¶
func NewTestHelper(t *testing.T) *TestHelper
func (*TestHelper) AssertEqual ¶
func (t *TestHelper) AssertEqual(want, got interface{})
func (*TestHelper) AssertEqualMaps ¶
func (t *TestHelper) AssertEqualMaps(want, got map[string]string)
func (*TestHelper) AssertEqualSlices ¶
func (t *TestHelper) AssertEqualSlices(want, got []string)
func (*TestHelper) AssertEquivalentSlices ¶
func (t *TestHelper) AssertEquivalentSlices(want, got []string)
func (*TestHelper) AssertError ¶
func (t *TestHelper) AssertError(e error, msg string)
func (*TestHelper) AssertFalse ¶
func (t *TestHelper) AssertFalse(got bool)
func (*TestHelper) AssertNil ¶
func (t *TestHelper) AssertNil(i interface{})
func (*TestHelper) AssertNoError ¶
func (t *TestHelper) AssertNoError(e error)
func (*TestHelper) AssertNotEqual ¶
func (t *TestHelper) AssertNotEqual(want, got interface{})
func (*TestHelper) AssertNotNil ¶
func (t *TestHelper) AssertNotNil(i interface{})
func (*TestHelper) AssertOneOf ¶
func (t *TestHelper) AssertOneOf(want []string, got string)
func (*TestHelper) AssertQuiet ¶
func (t *TestHelper) AssertQuiet(message string)
func (*TestHelper) AssertTrue ¶
func (t *TestHelper) AssertTrue(got bool)
func (*TestHelper) GetFixture ¶
func (t *TestHelper) GetFixture(fx string) string
Click to show internal directories.
Click to hide internal directories.