MCPcopy Index your code
hub / github.com/cortexproject/cortex / RuleManagerFactory

Function RuleManagerFactory

pkg/ruler/manager_test.go:314–323  ·  view source on GitHub ↗
(groupsToReturn [][]*promRules.Group, waitDurations []time.Duration)

Source from the content-addressed store, hash-verified

312}
313
314func 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
325type mockRulesManager struct {
326 mtx sync.Mutex

Calls

no outgoing calls

Tested by

no test coverage detected