File: helpers_test.go

package info (click to toggle)
golang-github-mailru-easyjson 0.7.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports, experimental, forky, sid, trixie
  • size: 860 kB
  • sloc: makefile: 104; sh: 4
file content (12 lines) | stat: -rw-r--r-- 186 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
package easyjson

import "testing"

func BenchmarkNilCheck(b *testing.B) {
	var a *int
	for i := 0; i < b.N; i++ {
		if !isNilInterface(a) {
			b.Fatal("expected it to be nil")
		}
	}
}