MCPcopy Create free account
hub / github.com/cortexproject/cortex / TestLimiter_maxMetadataPerMetric

Function TestLimiter_maxMetadataPerMetric

pkg/ingester/limiter_test.go:30–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

28}
29
30func 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
43func TestLimiter_maxSeriesPerUser(t *testing.T) {
44 applyLimits := func(limits *validation.Limits, localLimit, globalLimit int) {

Callers

nothing calls this directly

Calls 2

maxMetadataPerMetricMethod · 0.80

Tested by

no test coverage detected