Documentation ¶
Index ¶
- func Diff(t *testing.T, a, b string)
- func DiffLine(t *testing.T, a, b string)
- func Differs(t *testing.T, a, b interface{})
- func Equals(t *testing.T, a, b interface{})
- func Panics(t *testing.T, f func())
- func ReadGolden(t *testing.T) string
- func ReadTestfile(t *testing.T, path string) string
- func ReadTestfilePkg(t *testing.T, path, pkg string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffLine ¶ added in v0.24.4
DiffLine checks the equality of two strings and reports its diff by lines if they differ.
func ReadGolden ¶
ReadGolden will attempt to read the golden file associated to the test.
func ReadTestfile ¶
ReadTestfile will open a file in the testdata directory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.