(b *testing.B)
| 77 | } |
| 78 | |
| 79 | func BenchmarkNewStatAdd(b *testing.B) { |
| 80 | sgwStats, err := NewSyncGatewayStats() |
| 81 | require.NoError(b, err) |
| 82 | |
| 83 | b.ResetTimer() |
| 84 | for n := 0; n < b.N; n++ { |
| 85 | sgwStats.GlobalStats.ResourceUtilizationStats().ErrorCount.Add(1) |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | func BenchmarkNewStatSet(b *testing.B) { |
| 90 | sgwStats, err := NewSyncGatewayStats() |
nothing calls this directly
no test coverage detected