| 323 | } |
| 324 | |
| 325 | type mockRulesManager struct { |
| 326 | mtx sync.Mutex |
| 327 | groupsToReturn [][]*promRules.Group |
| 328 | iteration int |
| 329 | waitDurations []time.Duration |
| 330 | running atomic.Bool |
| 331 | done chan struct{} |
| 332 | } |
| 333 | |
| 334 | func (m *mockRulesManager) Update(_ time.Duration, _ []string, _ labels.Labels, _ string, _ promRules.GroupEvalIterationFunc) error { |
| 335 | m.mtx.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected