mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoMetrics

type GoMetrics struct {
	mock.Mock
}

GoMetrics is an autogenerated mock type for the goMetrics type

func NewGoMetrics

func NewGoMetrics(t mockConstructorTestingTNewGoMetrics) *GoMetrics

NewGoMetrics creates a new instance of GoMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*GoMetrics) AddSampleWithLabels

func (_m *GoMetrics) AddSampleWithLabels(key []string, val float32, labels []metrics.Label)

AddSampleWithLabels provides a mock function with given fields: key, val, labels

func (*GoMetrics) EXPECT

func (_m *GoMetrics) EXPECT() *GoMetrics_Expecter

func (*GoMetrics) IncrCounterWithLabels

func (_m *GoMetrics) IncrCounterWithLabels(key []string, val float32, labels []metrics.Label)

IncrCounterWithLabels provides a mock function with given fields: key, val, labels

func (*GoMetrics) SetGaugeWithLabels

func (_m *GoMetrics) SetGaugeWithLabels(key []string, val float32, labels []metrics.Label)

SetGaugeWithLabels provides a mock function with given fields: key, val, labels

func (*GoMetrics) Shutdown

func (_m *GoMetrics) Shutdown()

Shutdown provides a mock function with given fields:

type GoMetrics_AddSampleWithLabels_Call

type GoMetrics_AddSampleWithLabels_Call struct {
	*mock.Call
}

GoMetrics_AddSampleWithLabels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddSampleWithLabels'

func (*GoMetrics_AddSampleWithLabels_Call) Return

func (*GoMetrics_AddSampleWithLabels_Call) Run

func (*GoMetrics_AddSampleWithLabels_Call) RunAndReturn

type GoMetrics_Expecter

type GoMetrics_Expecter struct {
	// contains filtered or unexported fields
}

func (*GoMetrics_Expecter) AddSampleWithLabels

func (_e *GoMetrics_Expecter) AddSampleWithLabels(key interface{}, val interface{}, labels interface{}) *GoMetrics_AddSampleWithLabels_Call

AddSampleWithLabels is a helper method to define mock.On call

  • key []string
  • val float32
  • labels []metrics.Label

func (*GoMetrics_Expecter) IncrCounterWithLabels

func (_e *GoMetrics_Expecter) IncrCounterWithLabels(key interface{}, val interface{}, labels interface{}) *GoMetrics_IncrCounterWithLabels_Call

IncrCounterWithLabels is a helper method to define mock.On call

  • key []string
  • val float32
  • labels []metrics.Label

func (*GoMetrics_Expecter) SetGaugeWithLabels

func (_e *GoMetrics_Expecter) SetGaugeWithLabels(key interface{}, val interface{}, labels interface{}) *GoMetrics_SetGaugeWithLabels_Call

SetGaugeWithLabels is a helper method to define mock.On call

  • key []string
  • val float32
  • labels []metrics.Label

func (*GoMetrics_Expecter) Shutdown

Shutdown is a helper method to define mock.On call

type GoMetrics_IncrCounterWithLabels_Call

type GoMetrics_IncrCounterWithLabels_Call struct {
	*mock.Call
}

GoMetrics_IncrCounterWithLabels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IncrCounterWithLabels'

func (*GoMetrics_IncrCounterWithLabels_Call) Return

func (*GoMetrics_IncrCounterWithLabels_Call) Run

func (*GoMetrics_IncrCounterWithLabels_Call) RunAndReturn

type GoMetrics_SetGaugeWithLabels_Call

type GoMetrics_SetGaugeWithLabels_Call struct {
	*mock.Call
}

GoMetrics_SetGaugeWithLabels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetGaugeWithLabels'

func (*GoMetrics_SetGaugeWithLabels_Call) Return

func (*GoMetrics_SetGaugeWithLabels_Call) Run

func (*GoMetrics_SetGaugeWithLabels_Call) RunAndReturn

type GoMetrics_Shutdown_Call

type GoMetrics_Shutdown_Call struct {
	*mock.Call
}

GoMetrics_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'

func (*GoMetrics_Shutdown_Call) Return

func (*GoMetrics_Shutdown_Call) Run

func (_c *GoMetrics_Shutdown_Call) Run(run func()) *GoMetrics_Shutdown_Call

func (*GoMetrics_Shutdown_Call) RunAndReturn

func (_c *GoMetrics_Shutdown_Call) RunAndReturn(run func()) *GoMetrics_Shutdown_Call

Jump to

Keyboard shortcuts

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