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

Struct mockedTokenGenerator

pkg/ring/token_generator_test.go:162–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162type mockedTokenGenerator struct {
163 totalZones int
164 zones map[string]int
165
166 called int
167 RandomTokenGenerator
168}
169
170func (m *mockedTokenGenerator) GenerateTokens(d *Desc, id, zone string, numTokens int, force bool) []uint32 {
171 m.called++

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected