From 926df248a9155923e2881668d7580221cc0af1e3 Mon Sep 17 00:00:00 2001 From: Matthias <5011972+fasmat@users.noreply.github.com> Date: Tue, 19 Sep 2023 09:59:21 +0000 Subject: [PATCH] Regenerate mocks --- Makefile | 2 +- registration/mocks/pow_verifier.go | 10 +++++++--- registration/mocks/registration.go | 10 +++++++--- service/mocks/service.go | 10 +++++++--- 4 files changed, 22 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 31b86875..72e82555 100644 --- a/Makefile +++ b/Makefile @@ -63,7 +63,7 @@ $(GOLINES): @go install github.com/segmentio/golines@v0.11.0 $(BIN_DIR)/mockgen: - go install go.uber.org/mock/mockgen@v0.2.0 + go install go.uber.org/mock/mockgen@v0.3.0 install-buf: @mkdir -p $(BIN_DIR) diff --git a/registration/mocks/pow_verifier.go b/registration/mocks/pow_verifier.go index c2bfe58b..8e0fb14e 100644 --- a/registration/mocks/pow_verifier.go +++ b/registration/mocks/pow_verifier.go @@ -1,6 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: github.com/spacemeshos/poet/registration (interfaces: PowVerifier) - +// +// Generated by this command: +// +// mockgen -typed -package mocks -destination mocks/pow_verifier.go . PowVerifier +// // Package mocks is a generated GoMock package. package mocks @@ -79,7 +83,7 @@ func (m *MockPowVerifier) SetParams(arg0 registration.PowParams) { } // SetParams indicates an expected call of SetParams. -func (mr *MockPowVerifierMockRecorder) SetParams(arg0 interface{}) *PowVerifierSetParamsCall { +func (mr *MockPowVerifierMockRecorder) SetParams(arg0 any) *PowVerifierSetParamsCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetParams", reflect.TypeOf((*MockPowVerifier)(nil).SetParams), arg0) return &PowVerifierSetParamsCall{Call: call} @@ -117,7 +121,7 @@ func (m *MockPowVerifier) Verify(arg0, arg1 []byte, arg2 uint64) error { } // Verify indicates an expected call of Verify. -func (mr *MockPowVerifierMockRecorder) Verify(arg0, arg1, arg2 interface{}) *PowVerifierVerifyCall { +func (mr *MockPowVerifierMockRecorder) Verify(arg0, arg1, arg2 any) *PowVerifierVerifyCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Verify", reflect.TypeOf((*MockPowVerifier)(nil).Verify), arg0, arg1, arg2) return &PowVerifierVerifyCall{Call: call} diff --git a/registration/mocks/registration.go b/registration/mocks/registration.go index f754f06c..e36c4898 100644 --- a/registration/mocks/registration.go +++ b/registration/mocks/registration.go @@ -1,6 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: github.com/spacemeshos/poet/registration (interfaces: WorkerService) - +// +// Generated by this command: +// +// mockgen -package mocks -destination mocks/registration.go . WorkerService +// // Package mocks is a generated GoMock package. package mocks @@ -44,7 +48,7 @@ func (m *MockWorkerService) ExecuteRound(arg0 context.Context, arg1 uint, arg2 [ } // ExecuteRound indicates an expected call of ExecuteRound. -func (mr *MockWorkerServiceMockRecorder) ExecuteRound(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockWorkerServiceMockRecorder) ExecuteRound(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteRound", reflect.TypeOf((*MockWorkerService)(nil).ExecuteRound), arg0, arg1, arg2) } @@ -58,7 +62,7 @@ func (m *MockWorkerService) RegisterForProofs(arg0 context.Context) <-chan share } // RegisterForProofs indicates an expected call of RegisterForProofs. -func (mr *MockWorkerServiceMockRecorder) RegisterForProofs(arg0 interface{}) *gomock.Call { +func (mr *MockWorkerServiceMockRecorder) RegisterForProofs(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterForProofs", reflect.TypeOf((*MockWorkerService)(nil).RegisterForProofs), arg0) } diff --git a/service/mocks/service.go b/service/mocks/service.go index 344b081c..e3b6947d 100644 --- a/service/mocks/service.go +++ b/service/mocks/service.go @@ -1,6 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: github.com/spacemeshos/poet/service (interfaces: RegistrationService) - +// +// Generated by this command: +// +// mockgen -package mocks -destination mocks/service.go . RegistrationService +// // Package mocks is a generated GoMock package. package mocks @@ -45,7 +49,7 @@ func (m *MockRegistrationService) NewProof(arg0 context.Context, arg1 shared.NIP } // NewProof indicates an expected call of NewProof. -func (mr *MockRegistrationServiceMockRecorder) NewProof(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockRegistrationServiceMockRecorder) NewProof(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewProof", reflect.TypeOf((*MockRegistrationService)(nil).NewProof), arg0, arg1) } @@ -59,7 +63,7 @@ func (m *MockRegistrationService) RegisterForRoundClosed(arg0 context.Context) < } // RegisterForRoundClosed indicates an expected call of RegisterForRoundClosed. -func (mr *MockRegistrationServiceMockRecorder) RegisterForRoundClosed(arg0 interface{}) *gomock.Call { +func (mr *MockRegistrationServiceMockRecorder) RegisterForRoundClosed(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterForRoundClosed", reflect.TypeOf((*MockRegistrationService)(nil).RegisterForRoundClosed), arg0) }