package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Feb 24, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Assert(t testingTB, cond bool, val ...interface{})
-
func Assertf(t testingTB, cond bool, format string, val ...interface{})
-
func DeepEqual(t testingTB, a, b interface{})
-
func Panic(t testingTB, fn func())
-
func PanicAt(t testingTB, fn func(), expect func(err interface{}) bool)
func Assert(t testingTB, cond bool, val ...interface{})
Assert asserts cond is true, otherwise fails the test.
func Assertf(t testingTB, cond bool, format string, val ...interface{})
Assertf asserts cond is true, otherwise fails the test.
func DeepEqual(t testingTB, a, b interface{})
DeepEqual asserts a and b are deep equal, otherwise fails the test.
func Panic(t testingTB, fn func())
Panic asserts fn should panic and recover it, otherwise fails the test.
func PanicAt(t testingTB, fn func(), expect func(err interface{}) bool)
PanicAt asserts fn should panic and recover it, otherwise fails the test. The expect function can be provided to do further examination of the error.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.