mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 05:57:03 +09:00
207 lines
6.2 KiB
Go
207 lines
6.2 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/anyproto/any-sync/app/ldiff (interfaces: Diff,Remote)
|
|
|
|
// Package mock_ldiff is a generated GoMock package.
|
|
package mock_ldiff
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
ldiff "github.com/anyproto/any-sync/app/ldiff"
|
|
gomock "github.com/golang/mock/gomock"
|
|
)
|
|
|
|
// MockDiff is a mock of Diff interface.
|
|
type MockDiff struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockDiffMockRecorder
|
|
}
|
|
|
|
// MockDiffMockRecorder is the mock recorder for MockDiff.
|
|
type MockDiffMockRecorder struct {
|
|
mock *MockDiff
|
|
}
|
|
|
|
// NewMockDiff creates a new mock instance.
|
|
func NewMockDiff(ctrl *gomock.Controller) *MockDiff {
|
|
mock := &MockDiff{ctrl: ctrl}
|
|
mock.recorder = &MockDiffMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockDiff) EXPECT() *MockDiffMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Diff mocks base method.
|
|
func (m *MockDiff) Diff(arg0 context.Context, arg1 ldiff.Remote) ([]string, []string, []string, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Diff", arg0, arg1)
|
|
ret0, _ := ret[0].([]string)
|
|
ret1, _ := ret[1].([]string)
|
|
ret2, _ := ret[2].([]string)
|
|
ret3, _ := ret[3].(error)
|
|
return ret0, ret1, ret2, ret3
|
|
}
|
|
|
|
// Diff indicates an expected call of Diff.
|
|
func (mr *MockDiffMockRecorder) Diff(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Diff", reflect.TypeOf((*MockDiff)(nil).Diff), arg0, arg1)
|
|
}
|
|
|
|
// Element mocks base method.
|
|
func (m *MockDiff) Element(arg0 string) (ldiff.Element, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Element", arg0)
|
|
ret0, _ := ret[0].(ldiff.Element)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Element indicates an expected call of Element.
|
|
func (mr *MockDiffMockRecorder) Element(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Element", reflect.TypeOf((*MockDiff)(nil).Element), arg0)
|
|
}
|
|
|
|
// Elements mocks base method.
|
|
func (m *MockDiff) Elements() []ldiff.Element {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Elements")
|
|
ret0, _ := ret[0].([]ldiff.Element)
|
|
return ret0
|
|
}
|
|
|
|
// Elements indicates an expected call of Elements.
|
|
func (mr *MockDiffMockRecorder) Elements() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Elements", reflect.TypeOf((*MockDiff)(nil).Elements))
|
|
}
|
|
|
|
// Hash mocks base method.
|
|
func (m *MockDiff) Hash() string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Hash")
|
|
ret0, _ := ret[0].(string)
|
|
return ret0
|
|
}
|
|
|
|
// Hash indicates an expected call of Hash.
|
|
func (mr *MockDiffMockRecorder) Hash() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Hash", reflect.TypeOf((*MockDiff)(nil).Hash))
|
|
}
|
|
|
|
// Ids mocks base method.
|
|
func (m *MockDiff) Ids() []string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Ids")
|
|
ret0, _ := ret[0].([]string)
|
|
return ret0
|
|
}
|
|
|
|
// Ids indicates an expected call of Ids.
|
|
func (mr *MockDiffMockRecorder) Ids() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ids", reflect.TypeOf((*MockDiff)(nil).Ids))
|
|
}
|
|
|
|
// Len mocks base method.
|
|
func (m *MockDiff) Len() int {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Len")
|
|
ret0, _ := ret[0].(int)
|
|
return ret0
|
|
}
|
|
|
|
// Len indicates an expected call of Len.
|
|
func (mr *MockDiffMockRecorder) Len() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Len", reflect.TypeOf((*MockDiff)(nil).Len))
|
|
}
|
|
|
|
// Ranges mocks base method.
|
|
func (m *MockDiff) Ranges(arg0 context.Context, arg1 []ldiff.Range, arg2 []ldiff.RangeResult) ([]ldiff.RangeResult, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Ranges", arg0, arg1, arg2)
|
|
ret0, _ := ret[0].([]ldiff.RangeResult)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Ranges indicates an expected call of Ranges.
|
|
func (mr *MockDiffMockRecorder) Ranges(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ranges", reflect.TypeOf((*MockDiff)(nil).Ranges), arg0, arg1, arg2)
|
|
}
|
|
|
|
// RemoveId mocks base method.
|
|
func (m *MockDiff) RemoveId(arg0 string) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "RemoveId", arg0)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// RemoveId indicates an expected call of RemoveId.
|
|
func (mr *MockDiffMockRecorder) RemoveId(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveId", reflect.TypeOf((*MockDiff)(nil).RemoveId), arg0)
|
|
}
|
|
|
|
// Set mocks base method.
|
|
func (m *MockDiff) Set(arg0 ...ldiff.Element) {
|
|
m.ctrl.T.Helper()
|
|
varargs := []interface{}{}
|
|
for _, a := range arg0 {
|
|
varargs = append(varargs, a)
|
|
}
|
|
m.ctrl.Call(m, "Set", varargs...)
|
|
}
|
|
|
|
// Set indicates an expected call of Set.
|
|
func (mr *MockDiffMockRecorder) Set(arg0 ...interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Set", reflect.TypeOf((*MockDiff)(nil).Set), arg0...)
|
|
}
|
|
|
|
// MockRemote is a mock of Remote interface.
|
|
type MockRemote struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockRemoteMockRecorder
|
|
}
|
|
|
|
// MockRemoteMockRecorder is the mock recorder for MockRemote.
|
|
type MockRemoteMockRecorder struct {
|
|
mock *MockRemote
|
|
}
|
|
|
|
// NewMockRemote creates a new mock instance.
|
|
func NewMockRemote(ctrl *gomock.Controller) *MockRemote {
|
|
mock := &MockRemote{ctrl: ctrl}
|
|
mock.recorder = &MockRemoteMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockRemote) EXPECT() *MockRemoteMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Ranges mocks base method.
|
|
func (m *MockRemote) Ranges(arg0 context.Context, arg1 []ldiff.Range, arg2 []ldiff.RangeResult) ([]ldiff.RangeResult, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Ranges", arg0, arg1, arg2)
|
|
ret0, _ := ret[0].([]ldiff.RangeResult)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Ranges indicates an expected call of Ranges.
|
|
func (mr *MockRemoteMockRecorder) Ranges(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ranges", reflect.TypeOf((*MockRemote)(nil).Ranges), arg0, arg1, arg2)
|
|
}
|