diff --git a/assert/assertions_test.go b/assert/assertions_test.go index 941dbbb..4f0f41c 100644 --- a/assert/assertions_test.go +++ b/assert/assertions_test.go @@ -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