(b *testing.B)
| 67 | } |
| 68 | |
| 69 | func BenchmarkNewV6WithTime(b *testing.B) { |
| 70 | b.RunParallel(func(pb *testing.PB) { |
| 71 | for pb.Next() { |
| 72 | now := time.Now() |
| 73 | _, err := NewV6WithTime(&now) |
| 74 | if err != nil { |
| 75 | b.Fatal(err) |
| 76 | } |
| 77 | } |
| 78 | }) |
| 79 | } |
| 80 | |
| 81 | func contains(t *testing.T, arr []string, str string) bool { |
| 82 | t.Helper() |
nothing calls this directly
no test coverage detected