Add a benchmark to time trivial call of NotNil

pull/932/merge
Bryan Boreham 2020-04-27 19:56:47 +00:00 committed by Boyan Soubachov
parent e734bda58c
commit f7ef284eb4
1 changed files with 6 additions and 0 deletions

View File

@ -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