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

Function newMockedTokenGenerator

pkg/ring/token_generator_test.go:175–177  ·  view source on GitHub ↗
(totalZones int)

Source from the content-addressed store, hash-verified

173}
174
175func newMockedTokenGenerator(totalZones int) *mockedTokenGenerator {
176 return &mockedTokenGenerator{totalZones: totalZones, zones: make(map[string]int)}
177}
178
179func assertDistancePerIngester(t testing.TB, d *Desc, tolerance float64) {
180 r := make(map[string]int64, len(d.Ingesters))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected