github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mock/execution_data_requester_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 // ExecutionDataRequesterMetrics is an autogenerated mock type for the ExecutionDataRequesterMetrics type 12 type ExecutionDataRequesterMetrics struct { 13 mock.Mock 14 } 15 16 // ExecutionDataFetchFinished provides a mock function with given fields: duration, success, height 17 func (_m *ExecutionDataRequesterMetrics) ExecutionDataFetchFinished(duration time.Duration, success bool, height uint64) { 18 _m.Called(duration, success, height) 19 } 20 21 // ExecutionDataFetchStarted provides a mock function with given fields: 22 func (_m *ExecutionDataRequesterMetrics) ExecutionDataFetchStarted() { 23 _m.Called() 24 } 25 26 // FetchRetried provides a mock function with given fields: 27 func (_m *ExecutionDataRequesterMetrics) FetchRetried() { 28 _m.Called() 29 } 30 31 // NotificationSent provides a mock function with given fields: height 32 func (_m *ExecutionDataRequesterMetrics) NotificationSent(height uint64) { 33 _m.Called(height) 34 } 35 36 type mockConstructorTestingTNewExecutionDataRequesterMetrics interface { 37 mock.TestingT 38 Cleanup(func()) 39 } 40 41 // NewExecutionDataRequesterMetrics creates a new instance of ExecutionDataRequesterMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 42 func NewExecutionDataRequesterMetrics(t mockConstructorTestingTNewExecutionDataRequesterMetrics) *ExecutionDataRequesterMetrics { 43 mock := &ExecutionDataRequesterMetrics{} 44 mock.Mock.Test(t) 45 46 t.Cleanup(func() { mock.AssertExpectations(t) }) 47 48 return mock 49 }