Debian Codegraph @

helpers_test.go

raw
1 package easyjson
2
3 import "testing"
4
5 func BenchmarkNilCheck(b *testing.B) {
6 var a *int
7 for i := 0; i < b.N; i++ {
8 if !isNilInterface(a) {
9 b.Fatal("expected it to be nil")
10 }
11 }
12 }