github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mock/execution_data_requester_v2_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 // ExecutionDataRequesterV2Metrics is an autogenerated mock type for the ExecutionDataRequesterV2Metrics type 12 type ExecutionDataRequesterV2Metrics struct { 13 mock.Mock 14 } 15 16 // FulfilledHeight provides a mock function with given fields: blockHeight 17 func (_m *ExecutionDataRequesterV2Metrics) FulfilledHeight(blockHeight uint64) { 18 _m.Called(blockHeight) 19 } 20 21 // ReceiptSkipped provides a mock function with given fields: 22 func (_m *ExecutionDataRequesterV2Metrics) ReceiptSkipped() { 23 _m.Called() 24 } 25 26 // RequestCanceled provides a mock function with given fields: 27 func (_m *ExecutionDataRequesterV2Metrics) RequestCanceled() { 28 _m.Called() 29 } 30 31 // RequestFailed provides a mock function with given fields: duration, retryable 32 func (_m *ExecutionDataRequesterV2Metrics) RequestFailed(duration time.Duration, retryable bool) { 33 _m.Called(duration, retryable) 34 } 35 36 // RequestSucceeded provides a mock function with given fields: blockHeight, duration, totalSize, numberOfAttempts 37 func (_m *ExecutionDataRequesterV2Metrics) RequestSucceeded(blockHeight uint64, duration time.Duration, totalSize uint64, numberOfAttempts int) { 38 _m.Called(blockHeight, duration, totalSize, numberOfAttempts) 39 } 40 41 // ResponseDropped provides a mock function with given fields: 42 func (_m *ExecutionDataRequesterV2Metrics) ResponseDropped() { 43 _m.Called() 44 } 45 46 type mockConstructorTestingTNewExecutionDataRequesterV2Metrics interface { 47 mock.TestingT 48 Cleanup(func()) 49 } 50 51 // NewExecutionDataRequesterV2Metrics creates a new instance of ExecutionDataRequesterV2Metrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 52 func NewExecutionDataRequesterV2Metrics(t mockConstructorTestingTNewExecutionDataRequesterV2Metrics) *ExecutionDataRequesterV2Metrics { 53 mock := &ExecutionDataRequesterV2Metrics{} 54 mock.Mock.Test(t) 55 56 t.Cleanup(func() { mock.AssertExpectations(t) }) 57 58 return mock 59 }