fix(x/staking,x/auth): regenerate mock to fix test (#20684)

This commit is contained in:
Halimao
2024-06-17 05:14:33 +00:00
committed by GitHub
parent d21620d128
commit 6ee21af1af
4 changed files with 32 additions and 0 deletions
+1
View File
@@ -30,4 +30,5 @@ type FeegrantKeeper interface {
type ConsensusKeeper interface {
Params(context.Context, *consensustypes.QueryParamsRequest) (*consensustypes.QueryParamsResponse, error)
GetCometInfo(context.Context, *consensustypes.QueryGetCometInfoRequest) (*consensustypes.QueryGetCometInfoResponse, error)
}
@@ -195,6 +195,21 @@ func (m *MockConsensusKeeper) EXPECT() *MockConsensusKeeperMockRecorder {
return m.recorder
}
// GetCometInfo mocks base method.
func (m *MockConsensusKeeper) GetCometInfo(arg0 context.Context, arg1 *types0.QueryGetCometInfoRequest) (*types0.QueryGetCometInfoResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetCometInfo", arg0, arg1)
ret0, _ := ret[0].(*types0.QueryGetCometInfoResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetCometInfo indicates an expected call of GetCometInfo.
func (mr *MockConsensusKeeperMockRecorder) GetCometInfo(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCometInfo", reflect.TypeOf((*MockConsensusKeeper)(nil).GetCometInfo), arg0, arg1)
}
// Params mocks base method.
func (m *MockConsensusKeeper) Params(arg0 context.Context, arg1 *types0.QueryParamsRequest) (*types0.QueryParamsResponse, error) {
m.ctrl.T.Helper()
@@ -765,6 +765,21 @@ func (m *MockConsensusKeeper) EXPECT() *MockConsensusKeeperMockRecorder {
return m.recorder
}
// GetCometInfo mocks base method.
func (m *MockConsensusKeeper) GetCometInfo(arg0 context.Context, arg1 *types.QueryGetCometInfoRequest) (*types.QueryGetCometInfoResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetCometInfo", arg0, arg1)
ret0, _ := ret[0].(*types.QueryGetCometInfoResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetCometInfo indicates an expected call of GetCometInfo.
func (mr *MockConsensusKeeperMockRecorder) GetCometInfo(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCometInfo", reflect.TypeOf((*MockConsensusKeeper)(nil).GetCometInfo), arg0, arg1)
}
// Params mocks base method.
func (m *MockConsensusKeeper) Params(arg0 context.Context, arg1 *types.QueryParamsRequest) (*types.QueryParamsResponse, error) {
m.ctrl.T.Helper()
+1
View File
@@ -118,4 +118,5 @@ func (StakingHooksWrapper) IsOnePerModuleType() {}
type ConsensusKeeper interface {
Params(context.Context, *consensustypes.QueryParamsRequest) (*consensustypes.QueryParamsResponse, error)
GetCometInfo(context.Context, *consensustypes.QueryGetCometInfoRequest) (*consensustypes.QueryGetCometInfoResponse, error)
}