...

Source file src/github.com/mailru/easyjson/helpers_test.go

Documentation: github.com/mailru/easyjson

     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  }
    13  

View as plain text