From 5efecff63150b3abe1421e6fb30c2b74f1b2d74b Mon Sep 17 00:00:00 2001 From: terence Date: Fri, 31 May 2024 09:24:17 -0700 Subject: [PATCH] Fix mockgen sh (#14068) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix mockgen sh * Radek's suggestion Co-authored-by: Radosław Kapka * Generate prysm chain client --------- Co-authored-by: Radosław Kapka --- hack/update-mockgen.sh | 4 ++-- testing/validator-mock/chain_client_mock.go | 4 ++-- testing/validator-mock/prysm_chain_client_mock.go | 9 +++++++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/hack/update-mockgen.sh b/hack/update-mockgen.sh index c5fdd493c2..6d636ff481 100755 --- a/hack/update-mockgen.sh +++ b/hack/update-mockgen.sh @@ -27,8 +27,8 @@ done # github.com/prysmaticlabs/prysm/v5/validator/client/iface # -------------------------------------------------------- iface_mocks=( - "$iface_mock_path/beacon_chain_client_mock.go BeaconChainClient" - "$iface_mock_path/prysm_beacon_chain_client_mock.go PrysmBeaconChainClient" + "$iface_mock_path/chain_client_mock.go ChainClient" + "$iface_mock_path/prysm_chain_client_mock.go PrysmChainClient" "$iface_mock_path/node_client_mock.go NodeClient" "$iface_mock_path/validator_client_mock.go ValidatorClient" ) diff --git a/testing/validator-mock/chain_client_mock.go b/testing/validator-mock/chain_client_mock.go index d12ab76e98..b31172f9a4 100644 --- a/testing/validator-mock/chain_client_mock.go +++ b/testing/validator-mock/chain_client_mock.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/prysmaticlabs/prysm/v5/validator/client/iface (interfaces: BeaconChainClient) +// Source: github.com/prysmaticlabs/prysm/v5/validator/client/iface (interfaces: ChainClient) // // Generated by this command: // -// mockgen -package=validator_mock -destination=testing/validator-mock/beacon_chain_client_mock.go github.com/prysmaticlabs/prysm/v5/validator/client/iface BeaconChainClient +// mockgen -package=validator_mock -destination=testing/validator-mock/chain_client_mock.go github.com/prysmaticlabs/prysm/v5/validator/client/iface ChainClient // // Package validator_mock is a generated GoMock package. diff --git a/testing/validator-mock/prysm_chain_client_mock.go b/testing/validator-mock/prysm_chain_client_mock.go index 135c954010..303f5d91df 100644 --- a/testing/validator-mock/prysm_chain_client_mock.go +++ b/testing/validator-mock/prysm_chain_client_mock.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/prysmaticlabs/prysm/v4/validator/client/iface (interfaces: PrysmChainClient) +// Source: github.com/prysmaticlabs/prysm/v5/validator/client/iface (interfaces: PrysmChainClient) +// +// Generated by this command: +// +// mockgen -package=validator_mock -destination=testing/validator-mock/prysm_chain_client_mock.go github.com/prysmaticlabs/prysm/v5/validator/client/iface PrysmChainClient +// // Package validator_mock is a generated GoMock package. package validator_mock @@ -46,7 +51,7 @@ func (m *MockPrysmChainClient) ValidatorCount(arg0 context.Context, arg1 string, } // GetValidatorCount indicates an expected call of GetValidatorCount. -func (mr *MockPrysmChainClientMockRecorder) GetValidatorCount(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockPrysmChainClientMockRecorder) GetValidatorCount(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorCount", reflect.TypeOf((*MockPrysmChainClient)(nil).ValidatorCount), arg0, arg1, arg2) }