(groupsToReturn [][]*promRules.Group, waitDurations []time.Duration)
| 312 | } |
| 313 | |
| 314 | func RuleManagerFactory(groupsToReturn [][]*promRules.Group, waitDurations []time.Duration) ManagerFactory { |
| 315 | return func(_ context.Context, _ string, _ *notifier.Manager, _ log.Logger, _ *client.Pool, _ prometheus.Registerer) (RulesManager, error) { |
| 316 | return &mockRulesManager{ |
| 317 | done: make(chan struct{}), |
| 318 | groupsToReturn: groupsToReturn, |
| 319 | waitDurations: waitDurations, |
| 320 | iteration: -1, |
| 321 | }, nil |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | type mockRulesManager struct { |
| 326 | mtx sync.Mutex |
no outgoing calls
no test coverage detected