Documentation ¶
Index ¶
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 ¶
func NewMetrics(t mockConstructorTestingTNewMetrics) *Metrics
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.
func (*Metrics) EXPECT ¶
func (_m *Metrics) EXPECT() *Metrics_Expecter
func (*Metrics) GetThroughput ¶
GetThroughput provides a mock function with given fields:
func (*Metrics) IncrementThroughput ¶
func (_m *Metrics) IncrementThroughput()
IncrementThroughput provides a mock function with given fields:
func (*Metrics) SendMetrics ¶
SendMetrics provides a mock function with given fields:
type Metrics_Expecter ¶
type Metrics_Expecter struct {
// contains filtered or unexported fields
}
func (*Metrics_Expecter) GetThroughput ¶
func (_e *Metrics_Expecter) GetThroughput() *Metrics_GetThroughput_Call
GetThroughput is a helper method to define mock.On call
func (*Metrics_Expecter) IncrementThroughput ¶
func (_e *Metrics_Expecter) IncrementThroughput() *Metrics_IncrementThroughput_Call
IncrementThroughput is a helper method to define mock.On call
func (*Metrics_Expecter) SendMetrics ¶
func (_e *Metrics_Expecter) SendMetrics() *Metrics_SendMetrics_Call
SendMetrics is a helper method to define mock.On call
type Metrics_GetThroughput_Call ¶
Metrics_GetThroughput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetThroughput'
func (*Metrics_GetThroughput_Call) Return ¶
func (_c *Metrics_GetThroughput_Call) Return(_a0 uint64) *Metrics_GetThroughput_Call
func (*Metrics_GetThroughput_Call) Run ¶
func (_c *Metrics_GetThroughput_Call) Run(run func()) *Metrics_GetThroughput_Call
func (*Metrics_GetThroughput_Call) RunAndReturn ¶
func (_c *Metrics_GetThroughput_Call) RunAndReturn(run func() uint64) *Metrics_GetThroughput_Call
type Metrics_IncrementThroughput_Call ¶
Metrics_IncrementThroughput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IncrementThroughput'
func (*Metrics_IncrementThroughput_Call) Return ¶
func (_c *Metrics_IncrementThroughput_Call) Return() *Metrics_IncrementThroughput_Call
func (*Metrics_IncrementThroughput_Call) Run ¶
func (_c *Metrics_IncrementThroughput_Call) Run(run func()) *Metrics_IncrementThroughput_Call
func (*Metrics_IncrementThroughput_Call) RunAndReturn ¶
func (_c *Metrics_IncrementThroughput_Call) RunAndReturn(run func()) *Metrics_IncrementThroughput_Call
type Metrics_SendMetrics_Call ¶
Metrics_SendMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendMetrics'
func (*Metrics_SendMetrics_Call) Return ¶
func (_c *Metrics_SendMetrics_Call) Return(_a0 error) *Metrics_SendMetrics_Call
func (*Metrics_SendMetrics_Call) Run ¶
func (_c *Metrics_SendMetrics_Call) Run(run func()) *Metrics_SendMetrics_Call
func (*Metrics_SendMetrics_Call) RunAndReturn ¶
func (_c *Metrics_SendMetrics_Call) RunAndReturn(run func() error) *Metrics_SendMetrics_Call