mocks

package
v0.33.2 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	mock.Mock
}

Handler is an autogenerated mock type for the Handler type

func NewHandler

func NewHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *Handler

NewHandler creates a new instance of Handler. 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 (*Handler) EXPECT

func (_m *Handler) EXPECT() *Handler_Expecter

func (*Handler) GetMetrics

func (_m *Handler) GetMetrics(ctx context.Context) (metric.Data, error)

GetMetrics provides a mock function with given fields: ctx

type Handler_Expecter

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

func (*Handler_Expecter) GetMetrics

func (_e *Handler_Expecter) GetMetrics(ctx interface{}) *Handler_GetMetrics_Call

GetMetrics is a helper method to define mock.On call

  • ctx context.Context

type Handler_GetMetrics_Call

type Handler_GetMetrics_Call struct {
	*mock.Call
}

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

func (*Handler_GetMetrics_Call) Return

func (*Handler_GetMetrics_Call) Run

func (*Handler_GetMetrics_Call) RunAndReturn

type PerRunnerMetricHandler

type PerRunnerMetricHandler struct {
	mock.Mock
}

PerRunnerMetricHandler is an autogenerated mock type for the PerRunnerMetricHandler type

func NewPerRunnerMetricHandler

func NewPerRunnerMetricHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *PerRunnerMetricHandler

NewPerRunnerMetricHandler creates a new instance of PerRunnerMetricHandler. 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 (*PerRunnerMetricHandler) CalculatePerRunnerMetrics

func (_m *PerRunnerMetricHandler) CalculatePerRunnerMetrics(ctx context.Context, name string, currentValue float64, settings *calculator.PerRunnerMetricSettings) (*metric.Datum, error)

CalculatePerRunnerMetrics provides a mock function with given fields: ctx, name, currentValue, settings

func (*PerRunnerMetricHandler) EXPECT

type PerRunnerMetricHandler_CalculatePerRunnerMetrics_Call

type PerRunnerMetricHandler_CalculatePerRunnerMetrics_Call struct {
	*mock.Call
}

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

func (*PerRunnerMetricHandler_CalculatePerRunnerMetrics_Call) Return

func (*PerRunnerMetricHandler_CalculatePerRunnerMetrics_Call) Run

type PerRunnerMetricHandler_Expecter

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

func (*PerRunnerMetricHandler_Expecter) CalculatePerRunnerMetrics

func (_e *PerRunnerMetricHandler_Expecter) CalculatePerRunnerMetrics(ctx interface{}, name interface{}, currentValue interface{}, settings interface{}) *PerRunnerMetricHandler_CalculatePerRunnerMetrics_Call

CalculatePerRunnerMetrics is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • currentValue float64
  • settings *calculator.PerRunnerMetricSettings

Jump to

Keyboard shortcuts

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