-
Notifications
You must be signed in to change notification settings - Fork 175
/
lib_p2_p_connection_metrics.go
35 lines (26 loc) · 1.14 KB
/
lib_p2_p_connection_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
// Code generated by mockery v2.21.4. DO NOT EDIT.
package mock
import mock "github.com/stretchr/testify/mock"
// LibP2PConnectionMetrics is an autogenerated mock type for the LibP2PConnectionMetrics type
type LibP2PConnectionMetrics struct {
mock.Mock
}
// InboundConnections provides a mock function with given fields: connectionCount
func (_m *LibP2PConnectionMetrics) InboundConnections(connectionCount uint) {
_m.Called(connectionCount)
}
// OutboundConnections provides a mock function with given fields: connectionCount
func (_m *LibP2PConnectionMetrics) OutboundConnections(connectionCount uint) {
_m.Called(connectionCount)
}
type mockConstructorTestingTNewLibP2PConnectionMetrics interface {
mock.TestingT
Cleanup(func())
}
// NewLibP2PConnectionMetrics creates a new instance of LibP2PConnectionMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewLibP2PConnectionMetrics(t mockConstructorTestingTNewLibP2PConnectionMetrics) *LibP2PConnectionMetrics {
mock := &LibP2PConnectionMetrics{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}