The issue9-assert library provides a simple extension to testing that
provides a series of assert functions that are convenient for use in
test functions
.
Example:
func TestA(t testing.T) {
v := true
assert.True(v)
a := assert.New(t)
a.True(v)
}
// Can also be used for testing.B
func Benchmark1(b *testing.B) {
a := assert.New(b)
v := false
a.True(v)
for(i:=0; i
}
}
Installed Size: 53.2 kB
Architectures: all