performance tests
(b *testing.B)
| 83 | // performance tests |
| 84 | |
| 85 | func Benchmark_AddErrorCount_1(b *testing.B) { |
| 86 | var num uint64 = 1 |
| 87 | for i := 0; i < b.N; i++ { |
| 88 | GlobalState.AddErrorCount("test", errors.New("test error"), num) |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | func Benchmark_AddErrorCount_Parallel(b *testing.B) { |
| 93 | b.RunParallel(func(pb *testing.PB) { |
nothing calls this directly
no test coverage detected