github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mock/grpc_connection_pool_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  // GRPCConnectionPoolMetrics is an autogenerated mock type for the GRPCConnectionPoolMetrics type
     8  type GRPCConnectionPoolMetrics struct {
     9  	mock.Mock
    10  }
    11  
    12  // ConnectionAddedToPool provides a mock function with given fields:
    13  func (_m *GRPCConnectionPoolMetrics) ConnectionAddedToPool() {
    14  	_m.Called()
    15  }
    16  
    17  // ConnectionFromPoolEvicted provides a mock function with given fields:
    18  func (_m *GRPCConnectionPoolMetrics) ConnectionFromPoolEvicted() {
    19  	_m.Called()
    20  }
    21  
    22  // ConnectionFromPoolInvalidated provides a mock function with given fields:
    23  func (_m *GRPCConnectionPoolMetrics) ConnectionFromPoolInvalidated() {
    24  	_m.Called()
    25  }
    26  
    27  // ConnectionFromPoolReused provides a mock function with given fields:
    28  func (_m *GRPCConnectionPoolMetrics) ConnectionFromPoolReused() {
    29  	_m.Called()
    30  }
    31  
    32  // ConnectionFromPoolUpdated provides a mock function with given fields:
    33  func (_m *GRPCConnectionPoolMetrics) ConnectionFromPoolUpdated() {
    34  	_m.Called()
    35  }
    36  
    37  // NewConnectionEstablished provides a mock function with given fields:
    38  func (_m *GRPCConnectionPoolMetrics) NewConnectionEstablished() {
    39  	_m.Called()
    40  }
    41  
    42  // TotalConnectionsInPool provides a mock function with given fields: connectionCount, connectionPoolSize
    43  func (_m *GRPCConnectionPoolMetrics) TotalConnectionsInPool(connectionCount uint, connectionPoolSize uint) {
    44  	_m.Called(connectionCount, connectionPoolSize)
    45  }
    46  
    47  type mockConstructorTestingTNewGRPCConnectionPoolMetrics interface {
    48  	mock.TestingT
    49  	Cleanup(func())
    50  }
    51  
    52  // NewGRPCConnectionPoolMetrics creates a new instance of GRPCConnectionPoolMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    53  func NewGRPCConnectionPoolMetrics(t mockConstructorTestingTNewGRPCConnectionPoolMetrics) *GRPCConnectionPoolMetrics {
    54  	mock := &GRPCConnectionPoolMetrics{}
    55  	mock.Mock.Test(t)
    56  
    57  	t.Cleanup(func() { mock.AssertExpectations(t) })
    58  
    59  	return mock
    60  }