github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/engine/consensus/mock/sealing_observation.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 flow "github.com/onflow/flow-go/model/flow" 7 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // SealingObservation is an autogenerated mock type for the SealingObservation type 11 type SealingObservation struct { 12 mock.Mock 13 } 14 15 // ApprovalsMissing provides a mock function with given fields: ir, chunksWithMissingApprovals 16 func (_m *SealingObservation) ApprovalsMissing(ir *flow.IncorporatedResult, chunksWithMissingApprovals map[uint64]flow.IdentifierList) { 17 _m.Called(ir, chunksWithMissingApprovals) 18 } 19 20 // ApprovalsRequested provides a mock function with given fields: ir, requestCount 21 func (_m *SealingObservation) ApprovalsRequested(ir *flow.IncorporatedResult, requestCount uint) { 22 _m.Called(ir, requestCount) 23 } 24 25 // Complete provides a mock function with given fields: 26 func (_m *SealingObservation) Complete() { 27 _m.Called() 28 } 29 30 // QualifiesForEmergencySealing provides a mock function with given fields: ir, emergencySealable 31 func (_m *SealingObservation) QualifiesForEmergencySealing(ir *flow.IncorporatedResult, emergencySealable bool) { 32 _m.Called(ir, emergencySealable) 33 } 34 35 type mockConstructorTestingTNewSealingObservation interface { 36 mock.TestingT 37 Cleanup(func()) 38 } 39 40 // NewSealingObservation creates a new instance of SealingObservation. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 41 func NewSealingObservation(t mockConstructorTestingTNewSealingObservation) *SealingObservation { 42 mock := &SealingObservation{} 43 mock.Mock.Test(t) 44 45 t.Cleanup(func() { mock.AssertExpectations(t) }) 46 47 return mock 48 }