testutils

package
v0.92.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsJSON added in v0.72.0

func AsJSON(t *testing.T, v interface{}) string

func CreateTestFile added in v0.61.0

func CreateTestFile(t *testing.T, path string)

func CreateTestFileWithData added in v0.61.0

func CreateTestFileWithData(t *testing.T, path, data string)

func FileDir

func FileDir() string

FileDir returns the directory of this source file

func GetTestFixture

func GetTestFixture(t *testing.T, path string) string

func LogJSON added in v0.61.0

func LogJSON(t *testing.T, v interface{})

func ServeFromFilePath added in v0.79.1

func ServeFromFilePath(t *testing.T, data string) string

func TempFilename added in v0.55.0

func TempFilename(prefix string) string

Generates a temporary filename

func TestFixtureFilePath added in v0.79.0

func TestFixtureFilePath(t *testing.T, path string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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