package
Version:
v0.0.0-...-42befb5
Opens a new window with list of versions in this module.
Published: Jun 4, 2018
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package assert provides basic assert functions for tests
-
func Equal(t *testing.T, a interface{}, b interface{}, msg string)
-
func Err(t *testing.T, err error, msgs ...string)
-
func False(t *testing.T, v bool, msgs ...string)
-
func Nil(t *testing.T, obj interface{}, msgs ...string)
-
func NoErr(t *testing.T, err error, msgs ...string)
-
func NotNil(t *testing.T, obj interface{}, msgs ...string)
-
func True(t *testing.T, v bool, msgs ...string)
Equal verifies that a is equal to b.
Err verifies that err is not nil.
False verifies that v is false.
Nil verifies that obj is nil.
NoErr verifies that err is nil.
NotNil verifies that obj is not nil.
True verifies that v is true.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.