mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-09 17:45:03 +09:00
107 lines
3.3 KiB
Go
107 lines
3.3 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/anytypeio/go-anytype-infrastructure-experiments/common/commonspace/cache (interfaces: TreeCache)
|
|
|
|
// Package cache is a generated GoMock package.
|
|
package cache
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
app "github.com/anytypeio/go-anytype-infrastructure-experiments/app"
|
|
gomock "github.com/golang/mock/gomock"
|
|
)
|
|
|
|
// MockTreeCache is a mock of TreeCache interface.
|
|
type MockTreeCache struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockTreeCacheMockRecorder
|
|
}
|
|
|
|
// MockTreeCacheMockRecorder is the mock recorder for MockTreeCache.
|
|
type MockTreeCacheMockRecorder struct {
|
|
mock *MockTreeCache
|
|
}
|
|
|
|
// NewMockTreeCache creates a new mock instance.
|
|
func NewMockTreeCache(ctrl *gomock.Controller) *MockTreeCache {
|
|
mock := &MockTreeCache{ctrl: ctrl}
|
|
mock.recorder = &MockTreeCacheMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockTreeCache) EXPECT() *MockTreeCacheMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Close mocks base method.
|
|
func (m *MockTreeCache) Close(arg0 context.Context) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Close", arg0)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Close indicates an expected call of Close.
|
|
func (mr *MockTreeCacheMockRecorder) Close(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockTreeCache)(nil).Close), arg0)
|
|
}
|
|
|
|
// GetTree mocks base method.
|
|
func (m *MockTreeCache) GetTree(arg0 context.Context, arg1, arg2 string) (TreeResult, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetTree", arg0, arg1, arg2)
|
|
ret0, _ := ret[0].(TreeResult)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetTree indicates an expected call of GetTree.
|
|
func (mr *MockTreeCacheMockRecorder) GetTree(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTree", reflect.TypeOf((*MockTreeCache)(nil).GetTree), arg0, arg1, arg2)
|
|
}
|
|
|
|
// Init mocks base method.
|
|
func (m *MockTreeCache) Init(arg0 *app.App) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Init", arg0)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Init indicates an expected call of Init.
|
|
func (mr *MockTreeCacheMockRecorder) Init(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockTreeCache)(nil).Init), arg0)
|
|
}
|
|
|
|
// Name mocks base method.
|
|
func (m *MockTreeCache) Name() string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Name")
|
|
ret0, _ := ret[0].(string)
|
|
return ret0
|
|
}
|
|
|
|
// Name indicates an expected call of Name.
|
|
func (mr *MockTreeCacheMockRecorder) Name() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockTreeCache)(nil).Name))
|
|
}
|
|
|
|
// Run mocks base method.
|
|
func (m *MockTreeCache) Run(arg0 context.Context) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Run", arg0)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Run indicates an expected call of Run.
|
|
func (mr *MockTreeCacheMockRecorder) Run(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockTreeCache)(nil).Run), arg0)
|
|
}
|