github.com/cosmos/cosmos-sdk@v0.50.10/x/mint/testutil/expected_keepers_mocks.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: x/mint/types/expected_keepers.go 3 4 // Package testutil is a generated GoMock package. 5 package testutil 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 math "cosmossdk.io/math" 12 types "github.com/cosmos/cosmos-sdk/types" 13 gomock "github.com/golang/mock/gomock" 14 ) 15 16 // MockStakingKeeper is a mock of StakingKeeper interface. 17 type MockStakingKeeper struct { 18 ctrl *gomock.Controller 19 recorder *MockStakingKeeperMockRecorder 20 } 21 22 // MockStakingKeeperMockRecorder is the mock recorder for MockStakingKeeper. 23 type MockStakingKeeperMockRecorder struct { 24 mock *MockStakingKeeper 25 } 26 27 // NewMockStakingKeeper creates a new mock instance. 28 func NewMockStakingKeeper(ctrl *gomock.Controller) *MockStakingKeeper { 29 mock := &MockStakingKeeper{ctrl: ctrl} 30 mock.recorder = &MockStakingKeeperMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockStakingKeeper) EXPECT() *MockStakingKeeperMockRecorder { 36 return m.recorder 37 } 38 39 // BondedRatio mocks base method. 40 func (m *MockStakingKeeper) BondedRatio(ctx context.Context) (math.LegacyDec, error) { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "BondedRatio", ctx) 43 ret0, _ := ret[0].(math.LegacyDec) 44 ret1, _ := ret[1].(error) 45 return ret0, ret1 46 } 47 48 // BondedRatio indicates an expected call of BondedRatio. 49 func (mr *MockStakingKeeperMockRecorder) BondedRatio(ctx interface{}) *gomock.Call { 50 mr.mock.ctrl.T.Helper() 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BondedRatio", reflect.TypeOf((*MockStakingKeeper)(nil).BondedRatio), ctx) 52 } 53 54 // StakingTokenSupply mocks base method. 55 func (m *MockStakingKeeper) StakingTokenSupply(ctx context.Context) (math.Int, error) { 56 m.ctrl.T.Helper() 57 ret := m.ctrl.Call(m, "StakingTokenSupply", ctx) 58 ret0, _ := ret[0].(math.Int) 59 ret1, _ := ret[1].(error) 60 return ret0, ret1 61 } 62 63 // StakingTokenSupply indicates an expected call of StakingTokenSupply. 64 func (mr *MockStakingKeeperMockRecorder) StakingTokenSupply(ctx interface{}) *gomock.Call { 65 mr.mock.ctrl.T.Helper() 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StakingTokenSupply", reflect.TypeOf((*MockStakingKeeper)(nil).StakingTokenSupply), ctx) 67 } 68 69 // MockAccountKeeper is a mock of AccountKeeper interface. 70 type MockAccountKeeper struct { 71 ctrl *gomock.Controller 72 recorder *MockAccountKeeperMockRecorder 73 } 74 75 // MockAccountKeeperMockRecorder is the mock recorder for MockAccountKeeper. 76 type MockAccountKeeperMockRecorder struct { 77 mock *MockAccountKeeper 78 } 79 80 // NewMockAccountKeeper creates a new mock instance. 81 func NewMockAccountKeeper(ctrl *gomock.Controller) *MockAccountKeeper { 82 mock := &MockAccountKeeper{ctrl: ctrl} 83 mock.recorder = &MockAccountKeeperMockRecorder{mock} 84 return mock 85 } 86 87 // EXPECT returns an object that allows the caller to indicate expected use. 88 func (m *MockAccountKeeper) EXPECT() *MockAccountKeeperMockRecorder { 89 return m.recorder 90 } 91 92 // GetModuleAccount mocks base method. 93 func (m *MockAccountKeeper) GetModuleAccount(ctx context.Context, moduleName string) types.ModuleAccountI { 94 m.ctrl.T.Helper() 95 ret := m.ctrl.Call(m, "GetModuleAccount", ctx, moduleName) 96 ret0, _ := ret[0].(types.ModuleAccountI) 97 return ret0 98 } 99 100 // GetModuleAccount indicates an expected call of GetModuleAccount. 101 func (mr *MockAccountKeeperMockRecorder) GetModuleAccount(ctx, moduleName interface{}) *gomock.Call { 102 mr.mock.ctrl.T.Helper() 103 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetModuleAccount", reflect.TypeOf((*MockAccountKeeper)(nil).GetModuleAccount), ctx, moduleName) 104 } 105 106 // GetModuleAddress mocks base method. 107 func (m *MockAccountKeeper) GetModuleAddress(name string) types.AccAddress { 108 m.ctrl.T.Helper() 109 ret := m.ctrl.Call(m, "GetModuleAddress", name) 110 ret0, _ := ret[0].(types.AccAddress) 111 return ret0 112 } 113 114 // GetModuleAddress indicates an expected call of GetModuleAddress. 115 func (mr *MockAccountKeeperMockRecorder) GetModuleAddress(name interface{}) *gomock.Call { 116 mr.mock.ctrl.T.Helper() 117 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetModuleAddress", reflect.TypeOf((*MockAccountKeeper)(nil).GetModuleAddress), name) 118 } 119 120 // SetModuleAccount mocks base method. 121 func (m *MockAccountKeeper) SetModuleAccount(arg0 context.Context, arg1 types.ModuleAccountI) { 122 m.ctrl.T.Helper() 123 m.ctrl.Call(m, "SetModuleAccount", arg0, arg1) 124 } 125 126 // SetModuleAccount indicates an expected call of SetModuleAccount. 127 func (mr *MockAccountKeeperMockRecorder) SetModuleAccount(arg0, arg1 interface{}) *gomock.Call { 128 mr.mock.ctrl.T.Helper() 129 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetModuleAccount", reflect.TypeOf((*MockAccountKeeper)(nil).SetModuleAccount), arg0, arg1) 130 } 131 132 // MockBankKeeper is a mock of BankKeeper interface. 133 type MockBankKeeper struct { 134 ctrl *gomock.Controller 135 recorder *MockBankKeeperMockRecorder 136 } 137 138 // MockBankKeeperMockRecorder is the mock recorder for MockBankKeeper. 139 type MockBankKeeperMockRecorder struct { 140 mock *MockBankKeeper 141 } 142 143 // NewMockBankKeeper creates a new mock instance. 144 func NewMockBankKeeper(ctrl *gomock.Controller) *MockBankKeeper { 145 mock := &MockBankKeeper{ctrl: ctrl} 146 mock.recorder = &MockBankKeeperMockRecorder{mock} 147 return mock 148 } 149 150 // EXPECT returns an object that allows the caller to indicate expected use. 151 func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder { 152 return m.recorder 153 } 154 155 // MintCoins mocks base method. 156 func (m *MockBankKeeper) MintCoins(ctx context.Context, name string, amt types.Coins) error { 157 m.ctrl.T.Helper() 158 ret := m.ctrl.Call(m, "MintCoins", ctx, name, amt) 159 ret0, _ := ret[0].(error) 160 return ret0 161 } 162 163 // MintCoins indicates an expected call of MintCoins. 164 func (mr *MockBankKeeperMockRecorder) MintCoins(ctx, name, amt interface{}) *gomock.Call { 165 mr.mock.ctrl.T.Helper() 166 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MintCoins", reflect.TypeOf((*MockBankKeeper)(nil).MintCoins), ctx, name, amt) 167 } 168 169 // SendCoinsFromModuleToAccount mocks base method. 170 func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr types.AccAddress, amt types.Coins) error { 171 m.ctrl.T.Helper() 172 ret := m.ctrl.Call(m, "SendCoinsFromModuleToAccount", ctx, senderModule, recipientAddr, amt) 173 ret0, _ := ret[0].(error) 174 return ret0 175 } 176 177 // SendCoinsFromModuleToAccount indicates an expected call of SendCoinsFromModuleToAccount. 178 func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call { 179 mr.mock.ctrl.T.Helper() 180 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendCoinsFromModuleToAccount", reflect.TypeOf((*MockBankKeeper)(nil).SendCoinsFromModuleToAccount), ctx, senderModule, recipientAddr, amt) 181 } 182 183 // SendCoinsFromModuleToModule mocks base method. 184 func (m *MockBankKeeper) SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt types.Coins) error { 185 m.ctrl.T.Helper() 186 ret := m.ctrl.Call(m, "SendCoinsFromModuleToModule", ctx, senderModule, recipientModule, amt) 187 ret0, _ := ret[0].(error) 188 return ret0 189 } 190 191 // SendCoinsFromModuleToModule indicates an expected call of SendCoinsFromModuleToModule. 192 func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToModule(ctx, senderModule, recipientModule, amt interface{}) *gomock.Call { 193 mr.mock.ctrl.T.Helper() 194 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendCoinsFromModuleToModule", reflect.TypeOf((*MockBankKeeper)(nil).SendCoinsFromModuleToModule), ctx, senderModule, recipientModule, amt) 195 }