package
Version:
v1.18.1
Opens a new window with list of versions in this module.
Published: Mar 20, 2019
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Equal(t *testing.T, expected, actual interface{}, msg ...interface{}) bool
-
func Error(t *testing.T, err error, msg ...interface{}) bool
-
func Fail(t *testing.T, msg ...interface{}) bool
-
func False(t *testing.T, v bool, msg ...interface{}) bool
-
func IsType(t *testing.T, expected, actual interface{}, msg ...interface{}) bool
-
func Nil(t *testing.T, v interface{}, msg ...interface{}) bool
-
func NoError(t *testing.T, err error, msg ...interface{}) bool
-
func NotNil(t *testing.T, v interface{}, msg ...interface{}) bool
-
func True(t *testing.T, v bool, msg ...interface{}) bool
func Equal(t *testing.T, expected, actual interface{}, msg ...interface{}) bool
Equal asserts expected and actual are equal.
Error asserts err is an error.
Fail marks the function as having failed but continues execution.
func IsType(t *testing.T, expected, actual interface{}, msg ...interface{}) bool
IsType asserts expected and actual are of the same type.
func Nil(t *testing.T, v interface{}, msg ...interface{}) bool
Nil asserts v is nil.
NoError asserts err is not an error.
func NotNil(t *testing.T, v interface{}, msg ...interface{}) bool
NotNil asserts v is not nil.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.