(t *testing.T)
| 12 | ) |
| 13 | |
| 14 | func 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 | |
| 22 | func TestOverridesExporter_withConfig(t *testing.T) { |
| 23 | tenantLimits := map[string]*Limits{ |
nothing calls this directly
no test coverage detected