Documentation
¶
Index ¶
- func GetCurrentTestDataDir(t *testing.T) string
- func GetProjectRootDir() string
- func GetTestDataFilePath(t *testing.T, path string) string
- func GetTestsDir() string
- func RequireBytesEqualToGolden(t *testing.T, goldenFilePath string, reader io.Reader)
- func RequireDataEqualToJSON[T any](t *testing.T, goldenFilePath string, data T)
- func RequireDataEqualToString(t *testing.T, goldenFilePath string, data string)
- func RequireDataEqualToYaml[T any](t *testing.T, goldenFilePath string, data T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentTestDataDir ¶
GetCurrentTestDataDir calculates the path to the test data corresponding to this exact test. This function must be called directly withing the test function but not deeper in the stack.
func GetProjectRootDir ¶
func GetProjectRootDir() string
func GetTestsDir ¶
func GetTestsDir() string
func RequireDataEqualToJSON ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.