package
Version:
v0.0.63
Opens a new window with list of versions in this module.
Published: Oct 14, 2020
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func EqualError(actual error, expected error, a ...interface{}) (bool, string)
-
func EqualErrorf(actual error, expected error, format string, a ...interface{}) (bool, string)
-
func Error(v interface{}, a ...interface{}) (bool, string)
-
func Errorf(v interface{}, format string, a ...interface{}) (bool, string)
-
func Nil(v interface{}, a ...interface{}) (bool, string)
-
func Nilf(v interface{}, format string, a ...interface{}) (bool, string)
-
func NonError(v interface{}, a ...interface{}) (bool, string)
-
func NonErrorf(v interface{}, format string, a ...interface{}) (bool, string)
-
func NonNil(v interface{}, a ...interface{}) (bool, string)
-
func NonNilf(v interface{}, format string, a ...interface{}) (bool, string)
-
func NonZero(v interface{}, a ...interface{}) (bool, string)
-
func NonZerof(v interface{}, format string, a ...interface{}) (bool, string)
-
func Zero(v interface{}, a ...interface{}) (bool, string)
-
func Zerof(v interface{}, format string, a ...interface{}) (bool, string)
EqualError asserts that a function returned an error (i.e. not `nil`)
and that it is equal to the provided error.
func Error(v interface{}, a ...interface{}) (bool, string)
Error asserts that a function returned an error (i.e. not `nil`).
func Nil(v interface{}, a ...interface{}) (bool, string)
Nil asserts that the specified object is nil.
func NonError(v interface{}, a ...interface{}) (bool, string)
NonError asserts that a function returned a none error (i.e. `nil`).
func NonNil(v interface{}, a ...interface{}) (bool, string)
NonNil asserts that the specified object is none nil.
func NonZero(v interface{}, a ...interface{}) (bool, string)
NonZero asserts that the specified object is none zero.
func Zero(v interface{}, a ...interface{}) (bool, string)
Zero asserts that the specified object is zero. I.e. nil, "", false, 0 or either
a slice or a channel with len == 0.
Source Files
¶
Directories
¶
Package leakcheck contains functions to check leaked goroutines.
|
Package leakcheck contains functions to check leaked goroutines. |
Click to show internal directories.
Click to hide internal directories.