Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/anyproto/any-sync/app/ldiff (interfaces: Diff,Remote)
Generated by this command:
mockgen -destination mock_ldiff/mock_ldiff.go github.com/anyproto/any-sync/app/ldiff Diff,Remote
Package mock_ldiff is a generated GoMock package.
Index ¶
- type MockDiff
- func (m *MockDiff) Diff(arg0 context.Context, arg1 ldiff.Remote) ([]string, []string, []string, error)
- func (m *MockDiff) EXPECT() *MockDiffMockRecorder
- func (m *MockDiff) Element(arg0 string) (ldiff.Element, error)
- func (m *MockDiff) Elements() []ldiff.Element
- func (m *MockDiff) Hash() string
- func (m *MockDiff) Ids() []string
- func (m *MockDiff) Len() int
- func (m *MockDiff) Ranges(arg0 context.Context, arg1 []ldiff.Range, arg2 []ldiff.RangeResult) ([]ldiff.RangeResult, error)
- func (m *MockDiff) RemoveId(arg0 string) error
- func (m *MockDiff) Set(arg0 ...ldiff.Element)
- type MockDiffMockRecorder
- func (mr *MockDiffMockRecorder) Diff(arg0, arg1 any) *gomock.Call
- func (mr *MockDiffMockRecorder) Element(arg0 any) *gomock.Call
- func (mr *MockDiffMockRecorder) Elements() *gomock.Call
- func (mr *MockDiffMockRecorder) Hash() *gomock.Call
- func (mr *MockDiffMockRecorder) Ids() *gomock.Call
- func (mr *MockDiffMockRecorder) Len() *gomock.Call
- func (mr *MockDiffMockRecorder) Ranges(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDiffMockRecorder) RemoveId(arg0 any) *gomock.Call
- func (mr *MockDiffMockRecorder) Set(arg0 ...any) *gomock.Call
- type MockRemote
- type MockRemoteMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDiff ¶
type MockDiff struct {
// contains filtered or unexported fields
}
MockDiff is a mock of Diff interface.
func NewMockDiff ¶
func NewMockDiff(ctrl *gomock.Controller) *MockDiff
NewMockDiff creates a new mock instance.
func (*MockDiff) Diff ¶
func (m *MockDiff) Diff(arg0 context.Context, arg1 ldiff.Remote) ([]string, []string, []string, error)
Diff mocks base method.
func (*MockDiff) EXPECT ¶
func (m *MockDiff) EXPECT() *MockDiffMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDiff) Ranges ¶
func (m *MockDiff) Ranges(arg0 context.Context, arg1 []ldiff.Range, arg2 []ldiff.RangeResult) ([]ldiff.RangeResult, error)
Ranges mocks base method.
type MockDiffMockRecorder ¶
type MockDiffMockRecorder struct {
// contains filtered or unexported fields
}
MockDiffMockRecorder is the mock recorder for MockDiff.
func (*MockDiffMockRecorder) Diff ¶
func (mr *MockDiffMockRecorder) Diff(arg0, arg1 any) *gomock.Call
Diff indicates an expected call of Diff.
func (*MockDiffMockRecorder) Element ¶
func (mr *MockDiffMockRecorder) Element(arg0 any) *gomock.Call
Element indicates an expected call of Element.
func (*MockDiffMockRecorder) Elements ¶
func (mr *MockDiffMockRecorder) Elements() *gomock.Call
Elements indicates an expected call of Elements.
func (*MockDiffMockRecorder) Hash ¶
func (mr *MockDiffMockRecorder) Hash() *gomock.Call
Hash indicates an expected call of Hash.
func (*MockDiffMockRecorder) Ids ¶
func (mr *MockDiffMockRecorder) Ids() *gomock.Call
Ids indicates an expected call of Ids.
func (*MockDiffMockRecorder) Len ¶
func (mr *MockDiffMockRecorder) Len() *gomock.Call
Len indicates an expected call of Len.
func (*MockDiffMockRecorder) Ranges ¶
func (mr *MockDiffMockRecorder) Ranges(arg0, arg1, arg2 any) *gomock.Call
Ranges indicates an expected call of Ranges.
type MockRemote ¶
type MockRemote struct {
// contains filtered or unexported fields
}
MockRemote is a mock of Remote interface.
func NewMockRemote ¶
func NewMockRemote(ctrl *gomock.Controller) *MockRemote
NewMockRemote creates a new mock instance.
func (*MockRemote) EXPECT ¶
func (m *MockRemote) EXPECT() *MockRemoteMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRemote) Ranges ¶
func (m *MockRemote) Ranges(arg0 context.Context, arg1 []ldiff.Range, arg2 []ldiff.RangeResult) ([]ldiff.RangeResult, error)
Ranges mocks base method.
type MockRemoteMockRecorder ¶
type MockRemoteMockRecorder struct {
// contains filtered or unexported fields
}
MockRemoteMockRecorder is the mock recorder for MockRemote.