func (_m *mockMembershipProxy) newDetachedRaftBackend(dataStructureId *ID, raftId uint64, config *Config, peers []*pb.RaftPeer) (*raftBackend, error) {
	ret := _m.Called(dataStructureId, raftId, config, peers)

	var r0 *raftBackend
	if rf, ok := ret.Get(0).(func(*ID, uint64, *Config, []*pb.RaftPeer) *raftBackend); ok {
		r0 = rf(dataStructureId, raftId, config, peers)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*raftBackend)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(*ID, uint64, *Config, []*pb.RaftPeer) error); ok {
		r1 = rf(dataStructureId, raftId, config, peers)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}
// newDetachedRaftBackend provides a mock function with given fields: dataStructureId, raftId, config, peers
newDetachedRaftBackend provides a mock function with given fields: dataStructureId, raftId, config, peers
// newDetachedRaftBackend provides a mock function with given fields : dataStructureId raftId config peers
func (_m *mockMembershipProxy) newDetachedRaftBackend(dataStructureId *ID, raftId uint64, config *Config, peers []*pb.RaftPeer) (*raftBackend, error) {
	ret := _m.Called(dataStructureId, raftId, config, peers)
	var r0 *raftBackend
	if rf, ok := ret.Get(0).(func(*ID, uint64, *Config, []*pb.RaftPeer) *raftBackend); ok {
		r0 = rf(dataStructureId, raftId, config, peers)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*raftBackend)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(*ID, uint64, *Config, []*pb.RaftPeer) error); ok {
		r1 = rf(dataStructureId, raftId, config, peers)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func ( _m * mockMembershipProxy ) newDetachedRaftBackend ( dataStructureId * ID , raftId uint64 , config * Config , peers [ ] * pb . RaftPeer ) ( * raftBackend , error ) { ret := _m . Called ( dataStructureId , raftId , config , peers ) var r0 * raftBackend if rf , ok := ret . Get ( 0 ) . ( func ( * ID , uint64 , * Config , [ ] * pb . RaftPeer ) * raftBackend ) ; ok { r0 = rf ( dataStructureId , raftId , config , peers ) } else { if ret . Get ( 0 ) != nil { r0 = ret . Get ( 0 ) . ( * raftBackend ) } } var r1 error if rf , ok := ret . Get ( 1 ) . ( func ( * ID , uint64 , * Config , [ ] * pb . RaftPeer ) error ) ; ok { r1 = rf ( dataStructureId , raftId , config , peers ) } else { r1 = ret . Error ( 1 ) } return r0 , r1 }
newDetachedRaftBackend provides a mock function with given fields: dataStructureId, raftId, config, peers
newDetachedRaftBackend provides a mock function with given fields : dataStructureId raftId config peers