MCPcopy Create free account
hub / github.com/dadgar/onecache / mockRing

Struct mockRing

onecache/ring_test.go:8–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6)
7
8type mockRing struct {
9 addImpl func(node string)
10 removeImpl func(node string)
11 replicaPeersImpl func(string) []string
12 successorImpl func(string) string
13 getOwnedKeysImpl func([]string) []string
14 ownedKeysByNodeImpl func([]string, string) []string
15}
16
17func (m *mockRing) replicaPeers(node string) []string {
18 return m.replicaPeersImpl(node)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected