mockReplicator can be used by tests to mock the replicator
| 8 | |
| 9 | // mockReplicator can be used by tests to mock the replicator |
| 10 | type 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. |
nothing calls this directly
no outgoing calls
no test coverage detected