Documentation ¶
Overview ¶
Package assert provides test assertion helpers.
Index ¶
- func Close(tb testing.TB, c io.Closer)
- func Equal(tb testing.TB, exp, got interface{})
- func Error(tb testing.TB, err error)
- func ErrorString(tb testing.TB, err error, msg string)
- func False(tb testing.TB, v bool)
- func JSON(tb testing.TB, exp, got interface{})
- func NotEqual(tb testing.TB, v1, v2 interface{})
- func ReadFile(tb testing.TB, fp string) (data []byte)
- func Remove(tb testing.TB, fp string)
- func RemoveAll(tb testing.TB, fp string)
- func Runes(tb testing.TB, exp, got string)
- func String(tb testing.TB, exp, got string)
- func StringJSON(tb testing.TB, exp string, got interface{})
- func Success(tb testing.TB, err error)
- func TempDir(tb testing.TB) (dir string, cleanup func())
- func Testdata(tb testing.TB, ext string, got []byte)
- func TestdataDir(tb testing.TB, dir string)
- func TestdataJSON(tb testing.TB, got interface{})
- func True(tb testing.TB, v bool)
- func WriteFile(tb testing.TB, fp string, data []byte, perms os.FileMode)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringJSON ¶
func TestdataDir ¶
func TestdataJSON ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.