(b *testing.B)
| 57 | } |
| 58 | |
| 59 | func BenchmarkErrorMapAdd(b *testing.B) { |
| 60 | m := newErrorMap() |
| 61 | err := errors.New("benchmark") |
| 62 | b.ResetTimer() |
| 63 | b.RunParallel(func(pb *testing.PB) { |
| 64 | for pb.Next() { |
| 65 | m.add(err) |
| 66 | } |
| 67 | }) |
| 68 | } |
| 69 | |
| 70 | func BenchmarkErrorMapGet(b *testing.B) { |
| 71 | m := newErrorMap() |
nothing calls this directly
no test coverage detected