mirror of
https://github.com/stretchr/testify.git
synced 2025-07-08 03:28:25 +00:00
Add a benchmark to time trivial call of NotNil
This commit is contained in:
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…
x
Reference in New Issue
Block a user