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

Function TestLimiter_maxMetadataPerUser

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

Source from the content-addressed store, hash-verified

67}
68
69func 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
82func runLimiterMaxFunctionTest(
83 t *testing.T,

Callers

nothing calls this directly

Calls 2

maxMetadataPerUserMethod · 0.80

Tested by

no test coverage detected