testutils

package
v0.70.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 the current 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 TempFilename added in v0.55.0

func TempFilename(prefix string) string

Generates a temporary filename

Types

This section is empty.

Jump to

Keyboard shortcuts

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