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

Function TestOverridesExporter_noConfig

pkg/util/validation/exporter_test.go:14–20  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

12)
13
14func TestOverridesExporter_noConfig(t *testing.T) {
15 exporter := NewOverridesExporter(newMockTenantLimits(nil))
16
17 // With no updated override configurations, there should be no override metrics
18 count := testutil.CollectAndCount(exporter, "cortex_overrides")
19 assert.Equal(t, 0, count)
20}
21
22func TestOverridesExporter_withConfig(t *testing.T) {
23 tenantLimits := map[string]*Limits{

Callers

nothing calls this directly

Calls 3

NewOverridesExporterFunction · 0.85
newMockTenantLimitsFunction · 0.70
EqualMethod · 0.65

Tested by

no test coverage detected