newMockReplicator returns a mock replicator that can be used by tests. The passed function replaces the IsReplicating function.
(isReplicating func(key string) bool)
| 14 | // newMockReplicator returns a mock replicator that can be used by tests. |
| 15 | // The passed function replaces the IsReplicating function. |
| 16 | func newMockReplicator(isReplicating func(key string) bool) *mockReplicator { |
| 17 | return &mockReplicator{isReplicating: isReplicating} |
| 18 | } |
| 19 | |
| 20 | func (m *mockReplicator) Stop() {} |
| 21 | func (m *mockReplicator) NodesRemoved([]string) {} |
no outgoing calls
no test coverage detected