-
Notifications
You must be signed in to change notification settings - Fork 175
/
execution_data_requester_v2_metrics.go
59 lines (45 loc) · 1.98 KB
/
execution_data_requester_v2_metrics.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// Code generated by mockery v2.13.1. DO NOT EDIT.
package mock
import (
mock "github.com/stretchr/testify/mock"
time "time"
)
// ExecutionDataRequesterV2Metrics is an autogenerated mock type for the ExecutionDataRequesterV2Metrics type
type ExecutionDataRequesterV2Metrics struct {
mock.Mock
}
// FulfilledHeight provides a mock function with given fields: blockHeight
func (_m *ExecutionDataRequesterV2Metrics) FulfilledHeight(blockHeight uint64) {
_m.Called(blockHeight)
}
// ReceiptSkipped provides a mock function with given fields:
func (_m *ExecutionDataRequesterV2Metrics) ReceiptSkipped() {
_m.Called()
}
// RequestCanceled provides a mock function with given fields:
func (_m *ExecutionDataRequesterV2Metrics) RequestCanceled() {
_m.Called()
}
// RequestFailed provides a mock function with given fields: duration, retryable
func (_m *ExecutionDataRequesterV2Metrics) RequestFailed(duration time.Duration, retryable bool) {
_m.Called(duration, retryable)
}
// RequestSucceeded provides a mock function with given fields: blockHeight, duration, totalSize, numberOfAttempts
func (_m *ExecutionDataRequesterV2Metrics) RequestSucceeded(blockHeight uint64, duration time.Duration, totalSize uint64, numberOfAttempts int) {
_m.Called(blockHeight, duration, totalSize, numberOfAttempts)
}
// ResponseDropped provides a mock function with given fields:
func (_m *ExecutionDataRequesterV2Metrics) ResponseDropped() {
_m.Called()
}
type mockConstructorTestingTNewExecutionDataRequesterV2Metrics interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewExecutionDataRequesterV2Metrics(t mockConstructorTestingTNewExecutionDataRequesterV2Metrics) *ExecutionDataRequesterV2Metrics {
mock := &ExecutionDataRequesterV2Metrics{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}