(b *testing.B)
| 38 | } |
| 39 | |
| 40 | func BenchmarkExpvarSet(b *testing.B) { |
| 41 | expvarMap := initExpvarBaseEquivalent() |
| 42 | |
| 43 | b.ResetTimer() |
| 44 | for n := 0; n < b.N; n++ { |
| 45 | expvarMap.Get("global").(*expvar.Map).Get("resource_utilization").(*expvar.Map).Get("error_count").(*expvar.Int).Set(1) |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | func BenchmarkExpvarGet(b *testing.B) { |
| 50 | expvarMap := initExpvarBaseEquivalent() |
nothing calls this directly
no test coverage detected