(t *testing.T)
| 67 | } |
| 68 | |
| 69 | func TestLimiter_maxMetadataPerUser(t *testing.T) { |
| 70 | applyLimits := func(limits *validation.Limits, localLimit, globalLimit int) { |
| 71 | limits.MaxLocalMetricsWithMetadataPerUser = localLimit |
| 72 | limits.MaxGlobalMetricsWithMetadataPerUser = globalLimit |
| 73 | } |
| 74 | |
| 75 | runMaxFn := func(limiter *Limiter) int { |
| 76 | return limiter.maxMetadataPerUser("test") |
| 77 | } |
| 78 | |
| 79 | runLimiterMaxFunctionTest(t, applyLimits, runMaxFn, false) |
| 80 | } |
| 81 | |
| 82 | func runLimiterMaxFunctionTest( |
| 83 | t *testing.T, |
nothing calls this directly
no test coverage detected