github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mock/lib_p2_p_connection_metrics.go (about)

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import mock "github.com/stretchr/testify/mock"
     6  
     7  // LibP2PConnectionMetrics is an autogenerated mock type for the LibP2PConnectionMetrics type
     8  type LibP2PConnectionMetrics struct {
     9  	mock.Mock
    10  }
    11  
    12  // InboundConnections provides a mock function with given fields: connectionCount
    13  func (_m *LibP2PConnectionMetrics) InboundConnections(connectionCount uint) {
    14  	_m.Called(connectionCount)
    15  }
    16  
    17  // OutboundConnections provides a mock function with given fields: connectionCount
    18  func (_m *LibP2PConnectionMetrics) OutboundConnections(connectionCount uint) {
    19  	_m.Called(connectionCount)
    20  }
    21  
    22  type mockConstructorTestingTNewLibP2PConnectionMetrics interface {
    23  	mock.TestingT
    24  	Cleanup(func())
    25  }
    26  
    27  // 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.
    28  func NewLibP2PConnectionMetrics(t mockConstructorTestingTNewLibP2PConnectionMetrics) *LibP2PConnectionMetrics {
    29  	mock := &LibP2PConnectionMetrics{}
    30  	mock.Mock.Test(t)
    31  
    32  	t.Cleanup(func() { mock.AssertExpectations(t) })
    33  
    34  	return mock
    35  }