github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mock/execution_data_pruner_metrics.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 mock "github.com/stretchr/testify/mock" 7 8 time "time" 9 ) 10 11 // ExecutionDataPrunerMetrics is an autogenerated mock type for the ExecutionDataPrunerMetrics type 12 type ExecutionDataPrunerMetrics struct { 13 mock.Mock 14 } 15 16 // Pruned provides a mock function with given fields: height, duration 17 func (_m *ExecutionDataPrunerMetrics) Pruned(height uint64, duration time.Duration) { 18 _m.Called(height, duration) 19 } 20 21 type mockConstructorTestingTNewExecutionDataPrunerMetrics interface { 22 mock.TestingT 23 Cleanup(func()) 24 } 25 26 // NewExecutionDataPrunerMetrics creates a new instance of ExecutionDataPrunerMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 27 func NewExecutionDataPrunerMetrics(t mockConstructorTestingTNewExecutionDataPrunerMetrics) *ExecutionDataPrunerMetrics { 28 mock := &ExecutionDataPrunerMetrics{} 29 mock.Mock.Test(t) 30 31 t.Cleanup(func() { mock.AssertExpectations(t) }) 32 33 return mock 34 }