Documentation ¶
Index ¶
- type Metrics
- type Metrics_Expecter
- type Metrics_RegisterCollector_Call
- func (_c *Metrics_RegisterCollector_Call) Return() *Metrics_RegisterCollector_Call
- func (_c *Metrics_RegisterCollector_Call) Run(run func(collector prometheus.Collector)) *Metrics_RegisterCollector_Call
- func (_c *Metrics_RegisterCollector_Call) RunAndReturn(run func(prometheus.Collector)) *Metrics_RegisterCollector_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
Metrics is an autogenerated mock type for the Metrics type
func NewMetrics ¶
NewMetrics creates a new instance of Metrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Metrics) EXPECT ¶
func (_m *Metrics) EXPECT() *Metrics_Expecter
func (*Metrics) RegisterCollector ¶
func (_m *Metrics) RegisterCollector(collector prometheus.Collector)
RegisterCollector provides a mock function with given fields: collector
type Metrics_Expecter ¶
type Metrics_Expecter struct {
// contains filtered or unexported fields
}
func (*Metrics_Expecter) RegisterCollector ¶
func (_e *Metrics_Expecter) RegisterCollector(collector interface{}) *Metrics_RegisterCollector_Call
RegisterCollector is a helper method to define mock.On call
- collector prometheus.Collector
type Metrics_RegisterCollector_Call ¶
Metrics_RegisterCollector_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterCollector'
func (*Metrics_RegisterCollector_Call) Return ¶
func (_c *Metrics_RegisterCollector_Call) Return() *Metrics_RegisterCollector_Call
func (*Metrics_RegisterCollector_Call) Run ¶
func (_c *Metrics_RegisterCollector_Call) Run(run func(collector prometheus.Collector)) *Metrics_RegisterCollector_Call
func (*Metrics_RegisterCollector_Call) RunAndReturn ¶
func (_c *Metrics_RegisterCollector_Call) RunAndReturn(run func(prometheus.Collector)) *Metrics_RegisterCollector_Call
Click to show internal directories.
Click to hide internal directories.