(b *testing.B)
| 68 | } |
| 69 | |
| 70 | func BenchmarkErrorMapGet(b *testing.B) { |
| 71 | m := newErrorMap() |
| 72 | err := errors.New("benchmark") |
| 73 | m.add(err) |
| 74 | b.ResetTimer() |
| 75 | b.RunParallel(func(pb *testing.PB) { |
| 76 | for pb.Next() { |
| 77 | m.get(err) |
| 78 | } |
| 79 | }) |
| 80 | } |
nothing calls this directly
no test coverage detected