Documentation ¶
Overview ¶
Reimport the go-cmp package as the name 'cmp' conflicts with the cmp instruction in the vm.
Index ¶
- func AllowUnexported(types ...interface{}) cmp.Option
- func Diff(a, b interface{}, opts ...cmp.Option) string
- func IgnoreUnexported(types ...interface{}) cmp.Option
- func TestChdir(tb testing.TB, dir string) func()
- func TestOpenFile(tb testing.TB, name string) *os.File
- func TestSetFlag(tb testing.TB, name, value string) func()
- func TestTempDir(tb testing.TB) (string, func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowUnexported ¶
func IgnoreUnexported ¶
func TestChdir ¶
TestChdir changes current working directory, and returns a cleanup function to return to the previous directory.
func TestOpenFile ¶
TestOpenFile creates a new file called name and returns the opened file.
func TestSetFlag ¶
TestSetFlag sets the value of the commandline flag, and returns a cleanup function that restores the flag value.
func TestTempDir ¶
TestTempDir creates a temporary directory for use during tests. It returns the pathname, and a cleanup function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.