(b *testing.B)
| 87 | } |
| 88 | |
| 89 | func BenchmarkNewStatSet(b *testing.B) { |
| 90 | sgwStats, err := NewSyncGatewayStats() |
| 91 | require.NoError(b, err) |
| 92 | |
| 93 | b.ResetTimer() |
| 94 | for n := 0; n < b.N; n++ { |
| 95 | sgwStats.GlobalStats.ResourceUtilizationStats().ErrorCount.Set(1) |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | func BenchmarkNewStatGet(b *testing.B) { |
| 100 | sgwStats, err := NewSyncGatewayStats() |
nothing calls this directly
no test coverage detected