mirror of https://github.com/stretchr/testify.git
Add a benchmark to time trivial call of NotNil
parent
e734bda58c
commit
f7ef284eb4
|
@ -2088,6 +2088,12 @@ func BenchmarkBytesEqual(b *testing.B) {
|
|||
}
|
||||
}
|
||||
|
||||
func BenchmarkNotNil(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
NotNil(b, b)
|
||||
}
|
||||
}
|
||||
|
||||
func ExampleComparisonAssertionFunc() {
|
||||
t := &testing.T{} // provided by test
|
||||
|
||||
|
|
Loading…
Reference in New Issue