-
Notifications
You must be signed in to change notification settings - Fork 174
/
bitswap_metrics.go
70 lines (54 loc) · 2.08 KB
/
bitswap_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
60
61
62
63
64
65
66
67
68
69
70
// Code generated by mockery v2.13.1. DO NOT EDIT.
package mock
import mock "github.com/stretchr/testify/mock"
// BitswapMetrics is an autogenerated mock type for the BitswapMetrics type
type BitswapMetrics struct {
mock.Mock
}
// BlobsReceived provides a mock function with given fields: prefix, n
func (_m *BitswapMetrics) BlobsReceived(prefix string, n uint64) {
_m.Called(prefix, n)
}
// BlobsSent provides a mock function with given fields: prefix, n
func (_m *BitswapMetrics) BlobsSent(prefix string, n uint64) {
_m.Called(prefix, n)
}
// DataReceived provides a mock function with given fields: prefix, n
func (_m *BitswapMetrics) DataReceived(prefix string, n uint64) {
_m.Called(prefix, n)
}
// DataSent provides a mock function with given fields: prefix, n
func (_m *BitswapMetrics) DataSent(prefix string, n uint64) {
_m.Called(prefix, n)
}
// DupBlobsReceived provides a mock function with given fields: prefix, n
func (_m *BitswapMetrics) DupBlobsReceived(prefix string, n uint64) {
_m.Called(prefix, n)
}
// DupDataReceived provides a mock function with given fields: prefix, n
func (_m *BitswapMetrics) DupDataReceived(prefix string, n uint64) {
_m.Called(prefix, n)
}
// MessagesReceived provides a mock function with given fields: prefix, n
func (_m *BitswapMetrics) MessagesReceived(prefix string, n uint64) {
_m.Called(prefix, n)
}
// Peers provides a mock function with given fields: prefix, n
func (_m *BitswapMetrics) Peers(prefix string, n int) {
_m.Called(prefix, n)
}
// Wantlist provides a mock function with given fields: prefix, n
func (_m *BitswapMetrics) Wantlist(prefix string, n int) {
_m.Called(prefix, n)
}
type mockConstructorTestingTNewBitswapMetrics interface {
mock.TestingT
Cleanup(func())
}
// NewBitswapMetrics creates a new instance of BitswapMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewBitswapMetrics(t mockConstructorTestingTNewBitswapMetrics) *BitswapMetrics {
mock := &BitswapMetrics{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}