github.com/koko1123/flow-go-1@v0.29.6/engine/consensus/mock/sealing_core.go (about) 1 // Code generated by mockery v2.13.1. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 flow "github.com/koko1123/flow-go-1/model/flow" 7 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // SealingCore is an autogenerated mock type for the SealingCore type 11 type SealingCore struct { 12 mock.Mock 13 } 14 15 // ProcessApproval provides a mock function with given fields: approval 16 func (_m *SealingCore) ProcessApproval(approval *flow.ResultApproval) error { 17 ret := _m.Called(approval) 18 19 var r0 error 20 if rf, ok := ret.Get(0).(func(*flow.ResultApproval) error); ok { 21 r0 = rf(approval) 22 } else { 23 r0 = ret.Error(0) 24 } 25 26 return r0 27 } 28 29 // ProcessFinalizedBlock provides a mock function with given fields: finalizedBlockID 30 func (_m *SealingCore) ProcessFinalizedBlock(finalizedBlockID flow.Identifier) error { 31 ret := _m.Called(finalizedBlockID) 32 33 var r0 error 34 if rf, ok := ret.Get(0).(func(flow.Identifier) error); ok { 35 r0 = rf(finalizedBlockID) 36 } else { 37 r0 = ret.Error(0) 38 } 39 40 return r0 41 } 42 43 // ProcessIncorporatedResult provides a mock function with given fields: result 44 func (_m *SealingCore) ProcessIncorporatedResult(result *flow.IncorporatedResult) error { 45 ret := _m.Called(result) 46 47 var r0 error 48 if rf, ok := ret.Get(0).(func(*flow.IncorporatedResult) error); ok { 49 r0 = rf(result) 50 } else { 51 r0 = ret.Error(0) 52 } 53 54 return r0 55 } 56 57 type mockConstructorTestingTNewSealingCore interface { 58 mock.TestingT 59 Cleanup(func()) 60 } 61 62 // NewSealingCore creates a new instance of SealingCore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 63 func NewSealingCore(t mockConstructorTestingTNewSealingCore) *SealingCore { 64 mock := &SealingCore{} 65 mock.Mock.Test(t) 66 67 t.Cleanup(func() { mock.AssertExpectations(t) }) 68 69 return mock 70 }