test: add BeginBlock extension interface to module mocks (port #23442) (#23443)

Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: Alex | Interchain Labs <alex@skip.money>
This commit is contained in:
mergify[bot] 2025-01-17 20:25:06 +01:00 committed by GitHub
parent d7d5b15d38
commit 7539072e72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 0 deletions

View File

@ -204,6 +204,20 @@ func (m *MockAppModuleWithAllExtensionsABCI) EXPECT() *MockAppModuleWithAllExten
return m.recorder
}
// BeginBlock mocks base method.
func (m *MockAppModuleWithAllExtensionsABCI) BeginBlock(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "BeginBlock", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// BeginBlock indicates an expected call of BeginBlock.
func (mr *MockAppModuleWithAllExtensionsABCIMockRecorder) BeginBlock(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeginBlock", reflect.TypeOf((*MockAppModuleWithAllExtensionsABCI)(nil).BeginBlock), arg0)
}
// ConsensusVersion mocks base method.
func (m *MockAppModuleWithAllExtensionsABCI) ConsensusVersion() uint64 {
m.ctrl.T.Helper()

View File

@ -25,6 +25,7 @@ type AppModuleWithAllExtensionsABCI interface {
module.HasServices
appmodulev2.HasABCIGenesis
appmodulev2.HasConsensusVersion
appmodulev2.HasBeginBlocker
module.HasABCIEndBlock
}