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

Function TestResetZoneMap

pkg/ring/util_test.go:336–344  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

334}
335
336func TestResetZoneMap(t *testing.T) {
337 zoneMap := map[string]int{
338 "zone-1": 2,
339 "zone-2": 2,
340 }
341
342 newZoneMap := resetZoneMap(zoneMap)
343 assert.Equal(t, 0, len(newZoneMap))
344}
345
346func TestResetZoneMap_NilAsAnArgument(t *testing.T) {
347 zoneMap := resetZoneMap(nil)

Callers

nothing calls this directly

Calls 2

resetZoneMapFunction · 0.85
EqualMethod · 0.65

Tested by

no test coverage detected