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

Struct mockReplicator

onecache/replicator_test.go:10–12  ·  view source on GitHub ↗

mockReplicator can be used by tests to mock the replicator

Source from the content-addressed store, hash-verified

8
9// mockReplicator can be used by tests to mock the replicator
10type mockReplicator struct {
11 isReplicating func(key string) bool
12}
13
14// newMockReplicator returns a mock replicator that can be used by tests.
15// The passed function replaces the IsReplicating function.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected