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

Function generateTokenForGroups

pkg/ruler/ruler_test.go:2591–2599  ·  view source on GitHub ↗
(groups []*rulespb.RuleGroupDesc, offset uint32)

Source from the content-addressed store, hash-verified

2589}
2590
2591func generateTokenForGroups(groups []*rulespb.RuleGroupDesc, offset uint32) []uint32 {
2592 var tokens []uint32
2593
2594 for _, g := range groups {
2595 tokens = append(tokens, tokenForGroup(g)+offset)
2596 }
2597
2598 return tokens
2599}
2600
2601func callDeleteTenantAPI(t *testing.T, api *Ruler, userID string) {
2602 ctx := user.InjectOrgID(context.Background(), userID)

Callers 3

TestGetRulesFunction · 0.85
TestGetRulesFromBackupFunction · 0.85
getRulesHATestFunction · 0.85

Calls 1

tokenForGroupFunction · 0.85

Tested by

no test coverage detected