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

This commit is contained in:
Matt Kocubinski 2025-01-17 08:38:53 -06:00 committed by GitHub
parent d9e28e42aa
commit 0390254b29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 0 deletions

View File

@ -197,6 +197,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 interface{}) *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
}