github.com/cosmos/cosmos-sdk@v0.50.10/x/params/testutil/staking_keeper_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: x/params/proposal_handler_test.go
     3  
     4  // Package testutil is a generated GoMock package.
     5  package testutil
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  )
    13  
    14  // MockStakingKeeper is a mock of StakingKeeper interface.
    15  type MockStakingKeeper struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockStakingKeeperMockRecorder
    18  }
    19  
    20  // MockStakingKeeperMockRecorder is the mock recorder for MockStakingKeeper.
    21  type MockStakingKeeperMockRecorder struct {
    22  	mock *MockStakingKeeper
    23  }
    24  
    25  // NewMockStakingKeeper creates a new mock instance.
    26  func NewMockStakingKeeper(ctrl *gomock.Controller) *MockStakingKeeper {
    27  	mock := &MockStakingKeeper{ctrl: ctrl}
    28  	mock.recorder = &MockStakingKeeperMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use.
    33  func (m *MockStakingKeeper) EXPECT() *MockStakingKeeperMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // MaxValidators mocks base method.
    38  func (m *MockStakingKeeper) MaxValidators(ctx context.Context) (uint32, error) {
    39  	m.ctrl.T.Helper()
    40  	ret := m.ctrl.Call(m, "MaxValidators", ctx)
    41  	ret0, _ := ret[0].(uint32)
    42  	ret1, _ := ret[1].(error)
    43  	return ret0, ret1
    44  }
    45  
    46  // MaxValidators indicates an expected call of MaxValidators.
    47  func (mr *MockStakingKeeperMockRecorder) MaxValidators(ctx interface{}) *gomock.Call {
    48  	mr.mock.ctrl.T.Helper()
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaxValidators", reflect.TypeOf((*MockStakingKeeper)(nil).MaxValidators), ctx)
    50  }