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

Function newFakeAlertStore

pkg/alertmanager/state_replication_test.go:85–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83}
84
85func newFakeAlertStore() *fakeAlertStore {
86 return &fakeAlertStore{
87 states: make(map[string]alertspb.FullStateDesc),
88 }
89}
90
91func (f *fakeAlertStore) GetFullState(ctx context.Context, user string) (alertspb.FullStateDesc, error) {
92 if result, ok := f.states[user]; ok {

Callers 2

TestStateReplicationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected