mocks

package
v0.0.0-...-a305310 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	mock.Mock
}

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

func (_m *Metrics) GetThroughput() uint64

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

func (_m *Metrics) SendMetrics() error

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

type Metrics_GetThroughput_Call struct {
	*mock.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 (*Metrics_GetThroughput_Call) Run

func (*Metrics_GetThroughput_Call) RunAndReturn

func (_c *Metrics_GetThroughput_Call) RunAndReturn(run func() uint64) *Metrics_GetThroughput_Call

type Metrics_IncrementThroughput_Call

type Metrics_IncrementThroughput_Call struct {
	*mock.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 (*Metrics_IncrementThroughput_Call) Run

func (*Metrics_IncrementThroughput_Call) RunAndReturn

type Metrics_SendMetrics_Call

type Metrics_SendMetrics_Call struct {
	*mock.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 (*Metrics_SendMetrics_Call) Run

func (*Metrics_SendMetrics_Call) RunAndReturn

func (_c *Metrics_SendMetrics_Call) RunAndReturn(run func() error) *Metrics_SendMetrics_Call

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL