package
Version:
v0.9.0
Opens a new window with list of versions in this module.
Published: Apr 11, 2020
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
¶
-
func DeepResult(t *testing.T, got, want interface{})
-
func Err(t *testing.T, err error, errSubstr string)
-
func NoErr(t *testing.T, err error)
-
func Result(t *testing.T, got, want interface{})
-
func WantErr(t *testing.T, want bool, err error, errSubstr string)
func DeepResult(t *testing.T, got, want interface{})
DeepResult compares test result with expected result using deepEqual
Err if you expect an error
NoErr if you don't expect an error
func Result(t *testing.T, got, want interface{})
Result compares test result with expected result using normal != assesment
WantErr if switching between Err and NoErr with a bool is needed.
Intended for use in table-based testing
Source Files
¶
Click to show internal directories.
Click to hide internal directories.