(b *testing.B)
| 230 | } |
| 231 | |
| 232 | func BenchmarkParallelCounter(b *testing.B) { |
| 233 | c := NewCounter(CounterOpts{ |
| 234 | Name: "benchmark_counter", |
| 235 | Help: "A Counter to benchmark it.", |
| 236 | }) |
| 237 | b.ReportAllocs() |
| 238 | b.ResetTimer() |
| 239 | b.RunParallel(func(pb *testing.PB) { |
| 240 | for pb.Next() { |
| 241 | c.Inc() |
| 242 | } |
| 243 | }) |
| 244 | } |
nothing calls this directly
no test coverage detected