github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mock/collection_executed_metric.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 // CollectionExecutedMetric is an autogenerated mock type for the CollectionExecutedMetric type 11 type CollectionExecutedMetric struct { 12 mock.Mock 13 } 14 15 // BlockFinalized provides a mock function with given fields: block 16 func (_m *CollectionExecutedMetric) BlockFinalized(block *flow.Block) { 17 _m.Called(block) 18 } 19 20 // CollectionExecuted provides a mock function with given fields: light 21 func (_m *CollectionExecutedMetric) CollectionExecuted(light flow.LightCollection) { 22 _m.Called(light) 23 } 24 25 // CollectionFinalized provides a mock function with given fields: light 26 func (_m *CollectionExecutedMetric) CollectionFinalized(light flow.LightCollection) { 27 _m.Called(light) 28 } 29 30 // ExecutionReceiptReceived provides a mock function with given fields: r 31 func (_m *CollectionExecutedMetric) ExecutionReceiptReceived(r *flow.ExecutionReceipt) { 32 _m.Called(r) 33 } 34 35 // UpdateLastFullBlockHeight provides a mock function with given fields: height 36 func (_m *CollectionExecutedMetric) UpdateLastFullBlockHeight(height uint64) { 37 _m.Called(height) 38 } 39 40 type mockConstructorTestingTNewCollectionExecutedMetric interface { 41 mock.TestingT 42 Cleanup(func()) 43 } 44 45 // NewCollectionExecutedMetric creates a new instance of CollectionExecutedMetric. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 46 func NewCollectionExecutedMetric(t mockConstructorTestingTNewCollectionExecutedMetric) *CollectionExecutedMetric { 47 mock := &CollectionExecutedMetric{} 48 mock.Mock.Test(t) 49 50 t.Cleanup(func() { mock.AssertExpectations(t) }) 51 52 return mock 53 }