func (_m *ConnectionPool) InUse() int64 {
	ret := _m.Called()
	var r0 int64
	if rf, ok := ret.Get(0).(func() int64); ok {
		r0 = rf()
	} else {
		r0 = ret.Get(0).(int64)
	}
	return r0
}
InUse provides a mock function with given fields:
package mocks
import (
	context "context"
	backend "github.com/XiaoMi/Gaea/backend"
	mock "github.com/stretchr/testify/mock"
	time "time"
)
type ConnectionPool struct {
	mock.Mock
}
func (_m *ConnectionPool) Active() int64 {
	ret := _m.Called()
	var r0 int64
	if rf, ok := ret.Get(0).(func() int64); ok {
		r0 = rf()
	} else {
		r0 = ret.Get(0).(int64)
	}
	return r0
}
func (_m *ConnectionPool) Addr() string {
	ret := _m.Called()
	var r0 string
	if rf, ok := ret.Get(0).(func() string); ok {
		r0 = rf()
	} else {
		r0 = ret.Get(0).(string)
	}
	return r0
}
func (_m *ConnectionPool) Available() int64 {
	ret := _m.Called()
	var r0 int64
	if rf, ok := ret.Get(0).(func() int64); ok {
		r0 = rf()
	} else {
		r0 = ret.Get(0).(int64)
	}
	return r0
}
func (_m *ConnectionPool) Capacity() int64 {
	ret := _m.Called()
	var r0 int64
	if rf, ok := ret.Get(0).(func() int64); ok {
		r0 = rf()
	} else {
		r0 = ret.Get(0).(int64)
	}
	return r0
}
func (_m *ConnectionPool) Close() {
	_m.Called()
}
func (_m *ConnectionPool) Get(ctx context.Context) (backend.PooledConnect, error) {
	ret := _m.Called(ctx)
	var r0 backend.PooledConnect
	if rf, ok := ret.Get(0).(func(context.Context) backend.PooledConnect); ok {
		r0 = rf(ctx)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(backend.PooledConnect)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context) error); ok {
		r1 = rf(ctx)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *ConnectionPool) IdleClosed() int64 {
	ret := _m.Called()
	var r0 int64
	if rf, ok := ret.Get(0).(func() int64); ok {
		r0 = rf()
	} else {
		r0 = ret.Get(0).(int64)
	}
	return r0
}
func (_m *ConnectionPool) IdleTimeout() time.Duration {
	ret := _m.Called()
	var r0 time.Duration
	if rf, ok := ret.Get(0).(func() time.Duration); ok {
		r0 = rf()
	} else {
		r0 = ret.Get(0).(time.Duration)
	}
	return r0
}