Discover Packages
github.com/cespare/kvcache
internal
github.com
cespare
asrt
package
Version:
v0.0.0-...-60e5113
Opens a new window with list of versions in this module.
Published: Sep 10, 2015
License: MIT, MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
asrt
A very lightweight assertions package for Go.
To Do
Better failure message for Equal
and DeepEqual
when got
or want
are large. It's very hard to see the
difference between, say, two 200-element slices. A nice structural diff implementation would go a very long
way.
Expand ▾
Collapse ▴
Documentation
¶
Assert calls t.Fatal unless pred is true.
func DeepEqual(t testing .TB , got, want interface{})
DeepEqual calls t.Fatal unless got equals want under reflect.DeepEqual.
func Equal(t testing .TB , got, want interface{})
Equal calls t.Fatal unless got == want.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.