-
Notifications
You must be signed in to change notification settings - Fork 167
/
grpc_connection_pool_metrics.go
60 lines (46 loc) · 1.96 KB
/
grpc_connection_pool_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
// Code generated by mockery v2.21.4. DO NOT EDIT.
package mock
import mock "github.com/stretchr/testify/mock"
// GRPCConnectionPoolMetrics is an autogenerated mock type for the GRPCConnectionPoolMetrics type
type GRPCConnectionPoolMetrics struct {
mock.Mock
}
// ConnectionAddedToPool provides a mock function with given fields:
func (_m *GRPCConnectionPoolMetrics) ConnectionAddedToPool() {
_m.Called()
}
// ConnectionFromPoolEvicted provides a mock function with given fields:
func (_m *GRPCConnectionPoolMetrics) ConnectionFromPoolEvicted() {
_m.Called()
}
// ConnectionFromPoolInvalidated provides a mock function with given fields:
func (_m *GRPCConnectionPoolMetrics) ConnectionFromPoolInvalidated() {
_m.Called()
}
// ConnectionFromPoolReused provides a mock function with given fields:
func (_m *GRPCConnectionPoolMetrics) ConnectionFromPoolReused() {
_m.Called()
}
// ConnectionFromPoolUpdated provides a mock function with given fields:
func (_m *GRPCConnectionPoolMetrics) ConnectionFromPoolUpdated() {
_m.Called()
}
// NewConnectionEstablished provides a mock function with given fields:
func (_m *GRPCConnectionPoolMetrics) NewConnectionEstablished() {
_m.Called()
}
// TotalConnectionsInPool provides a mock function with given fields: connectionCount, connectionPoolSize
func (_m *GRPCConnectionPoolMetrics) TotalConnectionsInPool(connectionCount uint, connectionPoolSize uint) {
_m.Called(connectionCount, connectionPoolSize)
}
type mockConstructorTestingTNewGRPCConnectionPoolMetrics interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewGRPCConnectionPoolMetrics(t mockConstructorTestingTNewGRPCConnectionPoolMetrics) *GRPCConnectionPoolMetrics {
mock := &GRPCConnectionPoolMetrics{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}