github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/engine/consensus/mock/sealing_tracker.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 consensus "github.com/onflow/flow-go/engine/consensus" 7 flow "github.com/onflow/flow-go/model/flow" 8 9 mock "github.com/stretchr/testify/mock" 10 ) 11 12 // SealingTracker is an autogenerated mock type for the SealingTracker type 13 type SealingTracker struct { 14 mock.Mock 15 } 16 17 // NewSealingObservation provides a mock function with given fields: finalizedBlock, seal, sealedBlock 18 func (_m *SealingTracker) NewSealingObservation(finalizedBlock *flow.Header, seal *flow.Seal, sealedBlock *flow.Header) consensus.SealingObservation { 19 ret := _m.Called(finalizedBlock, seal, sealedBlock) 20 21 var r0 consensus.SealingObservation 22 if rf, ok := ret.Get(0).(func(*flow.Header, *flow.Seal, *flow.Header) consensus.SealingObservation); ok { 23 r0 = rf(finalizedBlock, seal, sealedBlock) 24 } else { 25 if ret.Get(0) != nil { 26 r0 = ret.Get(0).(consensus.SealingObservation) 27 } 28 } 29 30 return r0 31 } 32 33 type mockConstructorTestingTNewSealingTracker interface { 34 mock.TestingT 35 Cleanup(func()) 36 } 37 38 // NewSealingTracker creates a new instance of SealingTracker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 39 func NewSealingTracker(t mockConstructorTestingTNewSealingTracker) *SealingTracker { 40 mock := &SealingTracker{} 41 mock.Mock.Test(t) 42 43 t.Cleanup(func() { mock.AssertExpectations(t) }) 44 45 return mock 46 }