mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-09 09:35:03 +09:00
Change treesyncer component and mocks
This commit is contained in:
parent
61bd9aae1e
commit
ce7bce7e48
39 changed files with 565 additions and 365 deletions
|
@ -1,6 +1,10 @@
|
|||
// Code generated by MockGen. DO NOT EDIT.
|
||||
// Source: github.com/anyproto/any-sync/nodeconf (interfaces: Service)
|
||||
|
||||
//
|
||||
// Generated by this command:
|
||||
//
|
||||
// mockgen -destination mock_nodeconf/mock_nodeconf.go github.com/anyproto/any-sync/nodeconf Service
|
||||
//
|
||||
// Package mock_nodeconf is a generated GoMock package.
|
||||
package mock_nodeconf
|
||||
|
||||
|
@ -60,7 +64,7 @@ func (m *MockService) Close(arg0 context.Context) error {
|
|||
}
|
||||
|
||||
// Close indicates an expected call of Close.
|
||||
func (mr *MockServiceMockRecorder) Close(arg0 interface{}) *gomock.Call {
|
||||
func (mr *MockServiceMockRecorder) Close(arg0 any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockService)(nil).Close), arg0)
|
||||
}
|
||||
|
@ -144,7 +148,7 @@ func (m *MockService) Init(arg0 *app.App) error {
|
|||
}
|
||||
|
||||
// Init indicates an expected call of Init.
|
||||
func (mr *MockServiceMockRecorder) Init(arg0 interface{}) *gomock.Call {
|
||||
func (mr *MockServiceMockRecorder) Init(arg0 any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockService)(nil).Init), arg0)
|
||||
}
|
||||
|
@ -158,7 +162,7 @@ func (m *MockService) IsResponsible(arg0 string) bool {
|
|||
}
|
||||
|
||||
// IsResponsible indicates an expected call of IsResponsible.
|
||||
func (mr *MockServiceMockRecorder) IsResponsible(arg0 interface{}) *gomock.Call {
|
||||
func (mr *MockServiceMockRecorder) IsResponsible(arg0 any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsResponsible", reflect.TypeOf((*MockService)(nil).IsResponsible), arg0)
|
||||
}
|
||||
|
@ -200,7 +204,7 @@ func (m *MockService) NodeIds(arg0 string) []string {
|
|||
}
|
||||
|
||||
// NodeIds indicates an expected call of NodeIds.
|
||||
func (mr *MockServiceMockRecorder) NodeIds(arg0 interface{}) *gomock.Call {
|
||||
func (mr *MockServiceMockRecorder) NodeIds(arg0 any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeIds", reflect.TypeOf((*MockService)(nil).NodeIds), arg0)
|
||||
}
|
||||
|
@ -214,7 +218,7 @@ func (m *MockService) NodeTypes(arg0 string) []nodeconf.NodeType {
|
|||
}
|
||||
|
||||
// NodeTypes indicates an expected call of NodeTypes.
|
||||
func (mr *MockServiceMockRecorder) NodeTypes(arg0 interface{}) *gomock.Call {
|
||||
func (mr *MockServiceMockRecorder) NodeTypes(arg0 any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeTypes", reflect.TypeOf((*MockService)(nil).NodeTypes), arg0)
|
||||
}
|
||||
|
@ -228,7 +232,7 @@ func (m *MockService) Partition(arg0 string) int {
|
|||
}
|
||||
|
||||
// Partition indicates an expected call of Partition.
|
||||
func (mr *MockServiceMockRecorder) Partition(arg0 interface{}) *gomock.Call {
|
||||
func (mr *MockServiceMockRecorder) Partition(arg0 any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Partition", reflect.TypeOf((*MockService)(nil).Partition), arg0)
|
||||
}
|
||||
|
@ -243,7 +247,7 @@ func (m *MockService) PeerAddresses(arg0 string) ([]string, bool) {
|
|||
}
|
||||
|
||||
// PeerAddresses indicates an expected call of PeerAddresses.
|
||||
func (mr *MockServiceMockRecorder) PeerAddresses(arg0 interface{}) *gomock.Call {
|
||||
func (mr *MockServiceMockRecorder) PeerAddresses(arg0 any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PeerAddresses", reflect.TypeOf((*MockService)(nil).PeerAddresses), arg0)
|
||||
}
|
||||
|
@ -257,7 +261,7 @@ func (m *MockService) Run(arg0 context.Context) error {
|
|||
}
|
||||
|
||||
// Run indicates an expected call of Run.
|
||||
func (mr *MockServiceMockRecorder) Run(arg0 interface{}) *gomock.Call {
|
||||
func (mr *MockServiceMockRecorder) Run(arg0 any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockService)(nil).Run), arg0)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue