github.com/cosmos/cosmos-sdk@v0.50.10/x/consensus/testutil/expected_keepers_mocks.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: x/bank/types/expected_keepers.go 3 4 // Package testutil is a generated GoMock package. 5 package testutil 6 7 import ( 8 reflect "reflect" 9 10 types "github.com/cosmos/cosmos-sdk/types" 11 types0 "github.com/cosmos/cosmos-sdk/x/auth/types" 12 gomock "github.com/golang/mock/gomock" 13 ) 14 15 // MockAccountKeeper is a mock of AccountKeeper interface. 16 type MockAccountKeeper struct { 17 ctrl *gomock.Controller 18 recorder *MockAccountKeeperMockRecorder 19 } 20 21 // MockAccountKeeperMockRecorder is the mock recorder for MockAccountKeeper. 22 type MockAccountKeeperMockRecorder struct { 23 mock *MockAccountKeeper 24 } 25 26 // NewMockAccountKeeper creates a new mock instance. 27 func NewMockAccountKeeper(ctrl *gomock.Controller) *MockAccountKeeper { 28 mock := &MockAccountKeeper{ctrl: ctrl} 29 mock.recorder = &MockAccountKeeperMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockAccountKeeper) EXPECT() *MockAccountKeeperMockRecorder { 35 return m.recorder 36 } 37 38 // GetAccount mocks base method. 39 func (m *MockAccountKeeper) GetAccount(ctx types.Context, addr types.AccAddress) types.AccountI { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "GetAccount", ctx, addr) 42 ret0, _ := ret[0].(types.AccountI) 43 return ret0 44 } 45 46 // GetAccount indicates an expected call of GetAccount. 47 func (mr *MockAccountKeeperMockRecorder) GetAccount(ctx, addr interface{}) *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccount", reflect.TypeOf((*MockAccountKeeper)(nil).GetAccount), ctx, addr) 50 } 51 52 // GetAllAccounts mocks base method. 53 func (m *MockAccountKeeper) GetAllAccounts(ctx types.Context) []types.AccountI { 54 m.ctrl.T.Helper() 55 ret := m.ctrl.Call(m, "GetAllAccounts", ctx) 56 ret0, _ := ret[0].([]types.AccountI) 57 return ret0 58 } 59 60 // GetAllAccounts indicates an expected call of GetAllAccounts. 61 func (mr *MockAccountKeeperMockRecorder) GetAllAccounts(ctx interface{}) *gomock.Call { 62 mr.mock.ctrl.T.Helper() 63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllAccounts", reflect.TypeOf((*MockAccountKeeper)(nil).GetAllAccounts), ctx) 64 } 65 66 // GetModuleAccount mocks base method. 67 func (m *MockAccountKeeper) GetModuleAccount(ctx types.Context, moduleName string) types0.ModuleAccountI { 68 m.ctrl.T.Helper() 69 ret := m.ctrl.Call(m, "GetModuleAccount", ctx, moduleName) 70 ret0, _ := ret[0].(types0.ModuleAccountI) 71 return ret0 72 } 73 74 // GetModuleAccount indicates an expected call of GetModuleAccount. 75 func (mr *MockAccountKeeperMockRecorder) GetModuleAccount(ctx, moduleName interface{}) *gomock.Call { 76 mr.mock.ctrl.T.Helper() 77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetModuleAccount", reflect.TypeOf((*MockAccountKeeper)(nil).GetModuleAccount), ctx, moduleName) 78 } 79 80 // GetModuleAccountAndPermissions mocks base method. 81 func (m *MockAccountKeeper) GetModuleAccountAndPermissions(ctx types.Context, moduleName string) (types0.ModuleAccountI, []string) { 82 m.ctrl.T.Helper() 83 ret := m.ctrl.Call(m, "GetModuleAccountAndPermissions", ctx, moduleName) 84 ret0, _ := ret[0].(types0.ModuleAccountI) 85 ret1, _ := ret[1].([]string) 86 return ret0, ret1 87 } 88 89 // GetModuleAccountAndPermissions indicates an expected call of GetModuleAccountAndPermissions. 90 func (mr *MockAccountKeeperMockRecorder) GetModuleAccountAndPermissions(ctx, moduleName interface{}) *gomock.Call { 91 mr.mock.ctrl.T.Helper() 92 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetModuleAccountAndPermissions", reflect.TypeOf((*MockAccountKeeper)(nil).GetModuleAccountAndPermissions), ctx, moduleName) 93 } 94 95 // GetModuleAddress mocks base method. 96 func (m *MockAccountKeeper) GetModuleAddress(moduleName string) types.AccAddress { 97 m.ctrl.T.Helper() 98 ret := m.ctrl.Call(m, "GetModuleAddress", moduleName) 99 ret0, _ := ret[0].(types.AccAddress) 100 return ret0 101 } 102 103 // GetModuleAddress indicates an expected call of GetModuleAddress. 104 func (mr *MockAccountKeeperMockRecorder) GetModuleAddress(moduleName interface{}) *gomock.Call { 105 mr.mock.ctrl.T.Helper() 106 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetModuleAddress", reflect.TypeOf((*MockAccountKeeper)(nil).GetModuleAddress), moduleName) 107 } 108 109 // GetModuleAddressAndPermissions mocks base method. 110 func (m *MockAccountKeeper) GetModuleAddressAndPermissions(moduleName string) (types.AccAddress, []string) { 111 m.ctrl.T.Helper() 112 ret := m.ctrl.Call(m, "GetModuleAddressAndPermissions", moduleName) 113 ret0, _ := ret[0].(types.AccAddress) 114 ret1, _ := ret[1].([]string) 115 return ret0, ret1 116 } 117 118 // GetModuleAddressAndPermissions indicates an expected call of GetModuleAddressAndPermissions. 119 func (mr *MockAccountKeeperMockRecorder) GetModuleAddressAndPermissions(moduleName interface{}) *gomock.Call { 120 mr.mock.ctrl.T.Helper() 121 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetModuleAddressAndPermissions", reflect.TypeOf((*MockAccountKeeper)(nil).GetModuleAddressAndPermissions), moduleName) 122 } 123 124 // GetModulePermissions mocks base method. 125 func (m *MockAccountKeeper) GetModulePermissions() map[string]types0.PermissionsForAddress { 126 m.ctrl.T.Helper() 127 ret := m.ctrl.Call(m, "GetModulePermissions") 128 ret0, _ := ret[0].(map[string]types0.PermissionsForAddress) 129 return ret0 130 } 131 132 // GetModulePermissions indicates an expected call of GetModulePermissions. 133 func (mr *MockAccountKeeperMockRecorder) GetModulePermissions() *gomock.Call { 134 mr.mock.ctrl.T.Helper() 135 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetModulePermissions", reflect.TypeOf((*MockAccountKeeper)(nil).GetModulePermissions)) 136 } 137 138 // HasAccount mocks base method. 139 func (m *MockAccountKeeper) HasAccount(ctx types.Context, addr types.AccAddress) bool { 140 m.ctrl.T.Helper() 141 ret := m.ctrl.Call(m, "HasAccount", ctx, addr) 142 ret0, _ := ret[0].(bool) 143 return ret0 144 } 145 146 // HasAccount indicates an expected call of HasAccount. 147 func (mr *MockAccountKeeperMockRecorder) HasAccount(ctx, addr interface{}) *gomock.Call { 148 mr.mock.ctrl.T.Helper() 149 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasAccount", reflect.TypeOf((*MockAccountKeeper)(nil).HasAccount), ctx, addr) 150 } 151 152 // IterateAccounts mocks base method. 153 func (m *MockAccountKeeper) IterateAccounts(ctx types.Context, process func(types.AccountI) bool) { 154 m.ctrl.T.Helper() 155 m.ctrl.Call(m, "IterateAccounts", ctx, process) 156 } 157 158 // IterateAccounts indicates an expected call of IterateAccounts. 159 func (mr *MockAccountKeeperMockRecorder) IterateAccounts(ctx, process interface{}) *gomock.Call { 160 mr.mock.ctrl.T.Helper() 161 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IterateAccounts", reflect.TypeOf((*MockAccountKeeper)(nil).IterateAccounts), ctx, process) 162 } 163 164 // NewAccount mocks base method. 165 func (m *MockAccountKeeper) NewAccount(arg0 types.Context, arg1 types.AccountI) types.AccountI { 166 m.ctrl.T.Helper() 167 ret := m.ctrl.Call(m, "NewAccount", arg0, arg1) 168 ret0, _ := ret[0].(types.AccountI) 169 return ret0 170 } 171 172 // NewAccount indicates an expected call of NewAccount. 173 func (mr *MockAccountKeeperMockRecorder) NewAccount(arg0, arg1 interface{}) *gomock.Call { 174 mr.mock.ctrl.T.Helper() 175 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewAccount", reflect.TypeOf((*MockAccountKeeper)(nil).NewAccount), arg0, arg1) 176 } 177 178 // NewAccountWithAddress mocks base method. 179 func (m *MockAccountKeeper) NewAccountWithAddress(ctx types.Context, addr types.AccAddress) types.AccountI { 180 m.ctrl.T.Helper() 181 ret := m.ctrl.Call(m, "NewAccountWithAddress", ctx, addr) 182 ret0, _ := ret[0].(types.AccountI) 183 return ret0 184 } 185 186 // NewAccountWithAddress indicates an expected call of NewAccountWithAddress. 187 func (mr *MockAccountKeeperMockRecorder) NewAccountWithAddress(ctx, addr interface{}) *gomock.Call { 188 mr.mock.ctrl.T.Helper() 189 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewAccountWithAddress", reflect.TypeOf((*MockAccountKeeper)(nil).NewAccountWithAddress), ctx, addr) 190 } 191 192 // SetAccount mocks base method. 193 func (m *MockAccountKeeper) SetAccount(ctx types.Context, acc types.AccountI) { 194 m.ctrl.T.Helper() 195 m.ctrl.Call(m, "SetAccount", ctx, acc) 196 } 197 198 // SetAccount indicates an expected call of SetAccount. 199 func (mr *MockAccountKeeperMockRecorder) SetAccount(ctx, acc interface{}) *gomock.Call { 200 mr.mock.ctrl.T.Helper() 201 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetAccount", reflect.TypeOf((*MockAccountKeeper)(nil).SetAccount), ctx, acc) 202 } 203 204 // SetModuleAccount mocks base method. 205 func (m *MockAccountKeeper) SetModuleAccount(ctx types.Context, macc types0.ModuleAccountI) { 206 m.ctrl.T.Helper() 207 m.ctrl.Call(m, "SetModuleAccount", ctx, macc) 208 } 209 210 // SetModuleAccount indicates an expected call of SetModuleAccount. 211 func (mr *MockAccountKeeperMockRecorder) SetModuleAccount(ctx, macc interface{}) *gomock.Call { 212 mr.mock.ctrl.T.Helper() 213 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetModuleAccount", reflect.TypeOf((*MockAccountKeeper)(nil).SetModuleAccount), ctx, macc) 214 } 215 216 // ValidatePermissions mocks base method. 217 func (m *MockAccountKeeper) ValidatePermissions(macc types0.ModuleAccountI) error { 218 m.ctrl.T.Helper() 219 ret := m.ctrl.Call(m, "ValidatePermissions", macc) 220 ret0, _ := ret[0].(error) 221 return ret0 222 } 223 224 // ValidatePermissions indicates an expected call of ValidatePermissions. 225 func (mr *MockAccountKeeperMockRecorder) ValidatePermissions(macc interface{}) *gomock.Call { 226 mr.mock.ctrl.T.Helper() 227 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatePermissions", reflect.TypeOf((*MockAccountKeeper)(nil).ValidatePermissions), macc) 228 }