Documentation
¶
Index ¶
- Constants
- Variables
- func AssertBytesEq(t TestingT, filepath string, actual []byte, msgAndArgs ...interface{}) bool
- func AssertJSONEq(t TestingT, filepath string, actual string, msgAndArgs ...interface{}) bool
- func AssertStringEq(t TestingT, filepath string, actual string, msgAndArgs ...interface{}) bool
- func AssertYAMLEq(t TestingT, filepath string, actual string, msgAndArgs ...interface{}) bool
- func MakeDefaultName(name string) string
- func RequireBytesEq(t TestingT, filepath string, actual []byte, msgAndArgs ...interface{})
- func RequireJSONEq(t TestingT, filepath string, actual string, msgAndArgs ...interface{})
- func RequireStringEq(t TestingT, filepath string, actual string, msgAndArgs ...interface{})
- func RequireYAMLEq(t TestingT, filepath string, actual string, msgAndArgs ...interface{})
- type GoldenFileComparisonAssertionFunc
- type StringComparisonAssertionFunc
- type TestingT
Constants ¶
View Source
const ( DefaultTestDirectory = "./testdata/" DefaultGoldenFileSuffix = ".golden" )
Variables ¶
View Source
var Update = flag.Bool("update", false, "Update golden files")
Functions ¶
func AssertBytesEq ¶
func AssertJSONEq ¶
func AssertStringEq ¶
func AssertYAMLEq ¶
func MakeDefaultName ¶
func RequireBytesEq ¶
func RequireJSONEq ¶
func RequireStringEq ¶
func RequireYAMLEq ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.