mocks

package
v2.13.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusBackend

type PrometheusBackend struct {
	mock.Mock
}

PrometheusBackend is an autogenerated mock type for the PrometheusBackend type

func NewPrometheusBackend

func NewPrometheusBackend(t interface {
	mock.TestingT
	Cleanup(func())
}) *PrometheusBackend

NewPrometheusBackend creates a new instance of PrometheusBackend. 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 (*PrometheusBackend) EXPECT added in v2.13.1

func (*PrometheusBackend) SetAcceptFinalizedReportToTransmitAcceptedReportLatency

func (_m *PrometheusBackend) SetAcceptFinalizedReportToTransmitAcceptedReportLatency(_a0 []string, _a1 float64)

SetAcceptFinalizedReportToTransmitAcceptedReportLatency provides a mock function with given fields: _a0, _a1

func (*PrometheusBackend) SetCloseDuration

func (_m *PrometheusBackend) SetCloseDuration(_a0 []string, _a1 float64)

SetCloseDuration provides a mock function with given fields: _a0, _a1

func (*PrometheusBackend) SetObservationDuration

func (_m *PrometheusBackend) SetObservationDuration(_a0 []string, _a1 float64)

SetObservationDuration provides a mock function with given fields: _a0, _a1

func (*PrometheusBackend) SetObservationToReportLatency

func (_m *PrometheusBackend) SetObservationToReportLatency(_a0 []string, _a1 float64)

SetObservationToReportLatency provides a mock function with given fields: _a0, _a1

func (*PrometheusBackend) SetQueryDuration

func (_m *PrometheusBackend) SetQueryDuration(_a0 []string, _a1 float64)

SetQueryDuration provides a mock function with given fields: _a0, _a1

func (*PrometheusBackend) SetQueryToObservationLatency

func (_m *PrometheusBackend) SetQueryToObservationLatency(_a0 []string, _a1 float64)

SetQueryToObservationLatency provides a mock function with given fields: _a0, _a1

func (*PrometheusBackend) SetReportDuration

func (_m *PrometheusBackend) SetReportDuration(_a0 []string, _a1 float64)

SetReportDuration provides a mock function with given fields: _a0, _a1

func (*PrometheusBackend) SetReportToAcceptFinalizedReportLatency

func (_m *PrometheusBackend) SetReportToAcceptFinalizedReportLatency(_a0 []string, _a1 float64)

SetReportToAcceptFinalizedReportLatency provides a mock function with given fields: _a0, _a1

func (*PrometheusBackend) SetShouldAcceptFinalizedReportDuration

func (_m *PrometheusBackend) SetShouldAcceptFinalizedReportDuration(_a0 []string, _a1 float64)

SetShouldAcceptFinalizedReportDuration provides a mock function with given fields: _a0, _a1

func (*PrometheusBackend) SetShouldTransmitAcceptedReportDuration

func (_m *PrometheusBackend) SetShouldTransmitAcceptedReportDuration(_a0 []string, _a1 float64)

SetShouldTransmitAcceptedReportDuration provides a mock function with given fields: _a0, _a1

type PrometheusBackend_Expecter added in v2.13.1

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

func (*PrometheusBackend_Expecter) SetAcceptFinalizedReportToTransmitAcceptedReportLatency added in v2.13.1

func (_e *PrometheusBackend_Expecter) SetAcceptFinalizedReportToTransmitAcceptedReportLatency(_a0 interface{}, _a1 interface{}) *PrometheusBackend_SetAcceptFinalizedReportToTransmitAcceptedReportLatency_Call

SetAcceptFinalizedReportToTransmitAcceptedReportLatency is a helper method to define mock.On call

  • _a0 []string
  • _a1 float64

func (*PrometheusBackend_Expecter) SetCloseDuration added in v2.13.1

func (_e *PrometheusBackend_Expecter) SetCloseDuration(_a0 interface{}, _a1 interface{}) *PrometheusBackend_SetCloseDuration_Call

SetCloseDuration is a helper method to define mock.On call

  • _a0 []string
  • _a1 float64

func (*PrometheusBackend_Expecter) SetObservationDuration added in v2.13.1

func (_e *PrometheusBackend_Expecter) SetObservationDuration(_a0 interface{}, _a1 interface{}) *PrometheusBackend_SetObservationDuration_Call

SetObservationDuration is a helper method to define mock.On call

  • _a0 []string
  • _a1 float64

func (*PrometheusBackend_Expecter) SetObservationToReportLatency added in v2.13.1

func (_e *PrometheusBackend_Expecter) SetObservationToReportLatency(_a0 interface{}, _a1 interface{}) *PrometheusBackend_SetObservationToReportLatency_Call

SetObservationToReportLatency is a helper method to define mock.On call

  • _a0 []string
  • _a1 float64

func (*PrometheusBackend_Expecter) SetQueryDuration added in v2.13.1

func (_e *PrometheusBackend_Expecter) SetQueryDuration(_a0 interface{}, _a1 interface{}) *PrometheusBackend_SetQueryDuration_Call

SetQueryDuration is a helper method to define mock.On call

  • _a0 []string
  • _a1 float64

func (*PrometheusBackend_Expecter) SetQueryToObservationLatency added in v2.13.1

func (_e *PrometheusBackend_Expecter) SetQueryToObservationLatency(_a0 interface{}, _a1 interface{}) *PrometheusBackend_SetQueryToObservationLatency_Call

SetQueryToObservationLatency is a helper method to define mock.On call

  • _a0 []string
  • _a1 float64

func (*PrometheusBackend_Expecter) SetReportDuration added in v2.13.1

func (_e *PrometheusBackend_Expecter) SetReportDuration(_a0 interface{}, _a1 interface{}) *PrometheusBackend_SetReportDuration_Call

SetReportDuration is a helper method to define mock.On call

  • _a0 []string
  • _a1 float64

func (*PrometheusBackend_Expecter) SetReportToAcceptFinalizedReportLatency added in v2.13.1

func (_e *PrometheusBackend_Expecter) SetReportToAcceptFinalizedReportLatency(_a0 interface{}, _a1 interface{}) *PrometheusBackend_SetReportToAcceptFinalizedReportLatency_Call

SetReportToAcceptFinalizedReportLatency is a helper method to define mock.On call

  • _a0 []string
  • _a1 float64

func (*PrometheusBackend_Expecter) SetShouldAcceptFinalizedReportDuration added in v2.13.1

func (_e *PrometheusBackend_Expecter) SetShouldAcceptFinalizedReportDuration(_a0 interface{}, _a1 interface{}) *PrometheusBackend_SetShouldAcceptFinalizedReportDuration_Call

SetShouldAcceptFinalizedReportDuration is a helper method to define mock.On call

  • _a0 []string
  • _a1 float64

func (*PrometheusBackend_Expecter) SetShouldTransmitAcceptedReportDuration added in v2.13.1

func (_e *PrometheusBackend_Expecter) SetShouldTransmitAcceptedReportDuration(_a0 interface{}, _a1 interface{}) *PrometheusBackend_SetShouldTransmitAcceptedReportDuration_Call

SetShouldTransmitAcceptedReportDuration is a helper method to define mock.On call

  • _a0 []string
  • _a1 float64

type PrometheusBackend_SetAcceptFinalizedReportToTransmitAcceptedReportLatency_Call added in v2.13.1

type PrometheusBackend_SetAcceptFinalizedReportToTransmitAcceptedReportLatency_Call struct {
	*mock.Call
}

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

func (*PrometheusBackend_SetAcceptFinalizedReportToTransmitAcceptedReportLatency_Call) Return added in v2.13.1

func (*PrometheusBackend_SetAcceptFinalizedReportToTransmitAcceptedReportLatency_Call) Run added in v2.13.1

func (*PrometheusBackend_SetAcceptFinalizedReportToTransmitAcceptedReportLatency_Call) RunAndReturn added in v2.13.1

type PrometheusBackend_SetCloseDuration_Call added in v2.13.1

type PrometheusBackend_SetCloseDuration_Call struct {
	*mock.Call
}

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

func (*PrometheusBackend_SetCloseDuration_Call) Return added in v2.13.1

func (*PrometheusBackend_SetCloseDuration_Call) Run added in v2.13.1

func (*PrometheusBackend_SetCloseDuration_Call) RunAndReturn added in v2.13.1

type PrometheusBackend_SetObservationDuration_Call added in v2.13.1

type PrometheusBackend_SetObservationDuration_Call struct {
	*mock.Call
}

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

func (*PrometheusBackend_SetObservationDuration_Call) Return added in v2.13.1

func (*PrometheusBackend_SetObservationDuration_Call) Run added in v2.13.1

func (*PrometheusBackend_SetObservationDuration_Call) RunAndReturn added in v2.13.1

type PrometheusBackend_SetObservationToReportLatency_Call added in v2.13.1

type PrometheusBackend_SetObservationToReportLatency_Call struct {
	*mock.Call
}

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

func (*PrometheusBackend_SetObservationToReportLatency_Call) Return added in v2.13.1

func (*PrometheusBackend_SetObservationToReportLatency_Call) Run added in v2.13.1

func (*PrometheusBackend_SetObservationToReportLatency_Call) RunAndReturn added in v2.13.1

type PrometheusBackend_SetQueryDuration_Call added in v2.13.1

type PrometheusBackend_SetQueryDuration_Call struct {
	*mock.Call
}

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

func (*PrometheusBackend_SetQueryDuration_Call) Return added in v2.13.1

func (*PrometheusBackend_SetQueryDuration_Call) Run added in v2.13.1

func (*PrometheusBackend_SetQueryDuration_Call) RunAndReturn added in v2.13.1

type PrometheusBackend_SetQueryToObservationLatency_Call added in v2.13.1

type PrometheusBackend_SetQueryToObservationLatency_Call struct {
	*mock.Call
}

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

func (*PrometheusBackend_SetQueryToObservationLatency_Call) Return added in v2.13.1

func (*PrometheusBackend_SetQueryToObservationLatency_Call) Run added in v2.13.1

func (*PrometheusBackend_SetQueryToObservationLatency_Call) RunAndReturn added in v2.13.1

type PrometheusBackend_SetReportDuration_Call added in v2.13.1

type PrometheusBackend_SetReportDuration_Call struct {
	*mock.Call
}

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

func (*PrometheusBackend_SetReportDuration_Call) Return added in v2.13.1

func (*PrometheusBackend_SetReportDuration_Call) Run added in v2.13.1

func (*PrometheusBackend_SetReportDuration_Call) RunAndReturn added in v2.13.1

type PrometheusBackend_SetReportToAcceptFinalizedReportLatency_Call added in v2.13.1

type PrometheusBackend_SetReportToAcceptFinalizedReportLatency_Call struct {
	*mock.Call
}

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

func (*PrometheusBackend_SetReportToAcceptFinalizedReportLatency_Call) Return added in v2.13.1

func (*PrometheusBackend_SetReportToAcceptFinalizedReportLatency_Call) Run added in v2.13.1

func (*PrometheusBackend_SetReportToAcceptFinalizedReportLatency_Call) RunAndReturn added in v2.13.1

type PrometheusBackend_SetShouldAcceptFinalizedReportDuration_Call added in v2.13.1

type PrometheusBackend_SetShouldAcceptFinalizedReportDuration_Call struct {
	*mock.Call
}

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

func (*PrometheusBackend_SetShouldAcceptFinalizedReportDuration_Call) Return added in v2.13.1

func (*PrometheusBackend_SetShouldAcceptFinalizedReportDuration_Call) Run added in v2.13.1

func (*PrometheusBackend_SetShouldAcceptFinalizedReportDuration_Call) RunAndReturn added in v2.13.1

type PrometheusBackend_SetShouldTransmitAcceptedReportDuration_Call added in v2.13.1

type PrometheusBackend_SetShouldTransmitAcceptedReportDuration_Call struct {
	*mock.Call
}

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

func (*PrometheusBackend_SetShouldTransmitAcceptedReportDuration_Call) Return added in v2.13.1

func (*PrometheusBackend_SetShouldTransmitAcceptedReportDuration_Call) Run added in v2.13.1

func (*PrometheusBackend_SetShouldTransmitAcceptedReportDuration_Call) RunAndReturn added in v2.13.1

Jump to

Keyboard shortcuts

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