Documentation ¶
Index ¶
- func GetFixture(t *testing.T, typeName FixtureType, name string) []byte
- func GetFixtureAsType(t *testing.T, typeName FixtureType, name string, v interface{})
- func GetFixturePath(t *testing.T, typeName FixtureType, name string) string
- func GetTestLogger(t *testing.T) zerolog.Logger
- func RandomString(t *testing.T, length int) string
- type FixtureType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFixture ¶
func GetFixture(t *testing.T, typeName FixtureType, name string) []byte
func GetFixtureAsType ¶
func GetFixtureAsType(t *testing.T, typeName FixtureType, name string, v interface{})
func GetFixturePath ¶
func GetFixturePath(t *testing.T, typeName FixtureType, name string) string
Types ¶
type FixtureType ¶
type FixtureType string
const ( FixtureTypeRequest FixtureType = "requests" FixtureTypeManifest FixtureType = "manifests" FixtureTypeMedia FixtureType = "media" FixtureTypeResponse FixtureType = "responses" UUIDV4Length = 36 )
Click to show internal directories.
Click to hide internal directories.