(t *testing.T)
| 28 | } |
| 29 | |
| 30 | func TestLimiter_maxMetadataPerMetric(t *testing.T) { |
| 31 | applyLimits := func(limits *validation.Limits, localLimit, globalLimit int) { |
| 32 | limits.MaxLocalMetadataPerMetric = localLimit |
| 33 | limits.MaxGlobalMetadataPerMetric = globalLimit |
| 34 | } |
| 35 | |
| 36 | runMaxFn := func(limiter *Limiter) int { |
| 37 | return limiter.maxMetadataPerMetric("test") |
| 38 | } |
| 39 | |
| 40 | runLimiterMaxFunctionTest(t, applyLimits, runMaxFn, true) |
| 41 | } |
| 42 | |
| 43 | func TestLimiter_maxSeriesPerUser(t *testing.T) { |
| 44 | applyLimits := func(limits *validation.Limits, localLimit, globalLimit int) { |
nothing calls this directly
no test coverage detected