github.com/koko1123/flow-go-1@v0.29.6/module/mock/execution_data_provider_metrics.go (about) 1 // Code generated by mockery v2.13.1. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 mock "github.com/stretchr/testify/mock" 7 8 time "time" 9 ) 10 11 // ExecutionDataProviderMetrics is an autogenerated mock type for the ExecutionDataProviderMetrics type 12 type ExecutionDataProviderMetrics struct { 13 mock.Mock 14 } 15 16 // AddBlobsFailed provides a mock function with given fields: 17 func (_m *ExecutionDataProviderMetrics) AddBlobsFailed() { 18 _m.Called() 19 } 20 21 // AddBlobsSucceeded provides a mock function with given fields: duration, totalSize 22 func (_m *ExecutionDataProviderMetrics) AddBlobsSucceeded(duration time.Duration, totalSize uint64) { 23 _m.Called(duration, totalSize) 24 } 25 26 // RootIDComputed provides a mock function with given fields: duration, numberOfChunks 27 func (_m *ExecutionDataProviderMetrics) RootIDComputed(duration time.Duration, numberOfChunks int) { 28 _m.Called(duration, numberOfChunks) 29 } 30 31 type mockConstructorTestingTNewExecutionDataProviderMetrics interface { 32 mock.TestingT 33 Cleanup(func()) 34 } 35 36 // NewExecutionDataProviderMetrics creates a new instance of ExecutionDataProviderMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 37 func NewExecutionDataProviderMetrics(t mockConstructorTestingTNewExecutionDataProviderMetrics) *ExecutionDataProviderMetrics { 38 mock := &ExecutionDataProviderMetrics{} 39 mock.Mock.Test(t) 40 41 t.Cleanup(func() { mock.AssertExpectations(t) }) 42 43 return mock 44 }