mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-07 21:47:02 +09:00
77 lines
2.2 KiB
Go
77 lines
2.2 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/anyproto/any-sync/commonspace/headsync (interfaces: DiffSyncer)
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -destination mock_headsync/mock_headsync.go github.com/anyproto/any-sync/commonspace/headsync DiffSyncer
|
|
//
|
|
// Package mock_headsync is a generated GoMock package.
|
|
package mock_headsync
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockDiffSyncer is a mock of DiffSyncer interface.
|
|
type MockDiffSyncer struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockDiffSyncerMockRecorder
|
|
}
|
|
|
|
// MockDiffSyncerMockRecorder is the mock recorder for MockDiffSyncer.
|
|
type MockDiffSyncerMockRecorder struct {
|
|
mock *MockDiffSyncer
|
|
}
|
|
|
|
// NewMockDiffSyncer creates a new mock instance.
|
|
func NewMockDiffSyncer(ctrl *gomock.Controller) *MockDiffSyncer {
|
|
mock := &MockDiffSyncer{ctrl: ctrl}
|
|
mock.recorder = &MockDiffSyncerMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockDiffSyncer) EXPECT() *MockDiffSyncerMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Close mocks base method.
|
|
func (m *MockDiffSyncer) Close() {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "Close")
|
|
}
|
|
|
|
// Close indicates an expected call of Close.
|
|
func (mr *MockDiffSyncerMockRecorder) Close() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockDiffSyncer)(nil).Close))
|
|
}
|
|
|
|
// Init mocks base method.
|
|
func (m *MockDiffSyncer) Init() {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "Init")
|
|
}
|
|
|
|
// Init indicates an expected call of Init.
|
|
func (mr *MockDiffSyncerMockRecorder) Init() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockDiffSyncer)(nil).Init))
|
|
}
|
|
|
|
// Sync mocks base method.
|
|
func (m *MockDiffSyncer) Sync(arg0 context.Context) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Sync", arg0)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Sync indicates an expected call of Sync.
|
|
func (mr *MockDiffSyncerMockRecorder) Sync(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sync", reflect.TypeOf((*MockDiffSyncer)(nil).Sync), arg0)
|
|
}
|