(name string, maxMax int)
| 44 | } |
| 45 | |
| 46 | func maxValHistogramValidator(name string, maxMax int) *metricValidator { |
| 47 | return histogramValidator(name, func(t *testing.T, histogram metrics.Histogram) { |
| 48 | t.Helper() |
| 49 | max := int(histogram.Max()) |
| 50 | if max > maxMax { |
| 51 | t.Errorf("Expected histogram metric '%s' max <= %d, got %d", name, maxMax, max) |
| 52 | } |
| 53 | }) |
| 54 | } |
no test coverage detected