testutil

package
v0.0.0-...-2688f20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

func GetTestLogger

func GetTestLogger(t *testing.T) zerolog.Logger

func RandomString

func RandomString(t *testing.T, length int) string

Types

type FixtureType

type FixtureType string
const (
	FixtureTypeRequest  FixtureType = "requests"
	FixtureTypeManifest FixtureType = "manifests"
	FixtureTypeMedia    FixtureType = "media"
	FixtureTypeResponse FixtureType = "responses"

	UUIDV4Length = 36
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL