Documentation ¶
Index ¶
- type Handler
- type Handler_Expecter
- type Handler_GetMetrics_Call
- func (_c *Handler_GetMetrics_Call) Return(_a0 metric.Data, _a1 error) *Handler_GetMetrics_Call
- func (_c *Handler_GetMetrics_Call) Run(run func(ctx context.Context)) *Handler_GetMetrics_Call
- func (_c *Handler_GetMetrics_Call) RunAndReturn(run func(context.Context) (metric.Data, error)) *Handler_GetMetrics_Call
- type PerRunnerMetricHandler
- type PerRunnerMetricHandler_CalculatePerRunnerMetrics_Call
- func (_c *PerRunnerMetricHandler_CalculatePerRunnerMetrics_Call) Return(_a0 *metric.Datum, _a1 error) *PerRunnerMetricHandler_CalculatePerRunnerMetrics_Call
- func (_c *PerRunnerMetricHandler_CalculatePerRunnerMetrics_Call) Run(run func(ctx context.Context, name string, currentValue float64, ...)) *PerRunnerMetricHandler_CalculatePerRunnerMetrics_Call
- func (_c *PerRunnerMetricHandler_CalculatePerRunnerMetrics_Call) RunAndReturn(...) *PerRunnerMetricHandler_CalculatePerRunnerMetrics_Call
- type PerRunnerMetricHandler_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
Handler is an autogenerated mock type for the Handler type
func NewHandler ¶
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
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 ¶
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 (_c *Handler_GetMetrics_Call) Return(_a0 metric.Data, _a1 error) *Handler_GetMetrics_Call
func (*Handler_GetMetrics_Call) Run ¶
func (_c *Handler_GetMetrics_Call) Run(run func(ctx context.Context)) *Handler_GetMetrics_Call
func (*Handler_GetMetrics_Call) RunAndReturn ¶
func (_c *Handler_GetMetrics_Call) RunAndReturn(run func(context.Context) (metric.Data, error)) *Handler_GetMetrics_Call
type PerRunnerMetricHandler ¶
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 ¶
func (_m *PerRunnerMetricHandler) EXPECT() *PerRunnerMetricHandler_Expecter
type PerRunnerMetricHandler_CalculatePerRunnerMetrics_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 (_c *PerRunnerMetricHandler_CalculatePerRunnerMetrics_Call) Return(_a0 *metric.Datum, _a1 error) *PerRunnerMetricHandler_CalculatePerRunnerMetrics_Call
func (*PerRunnerMetricHandler_CalculatePerRunnerMetrics_Call) Run ¶
func (_c *PerRunnerMetricHandler_CalculatePerRunnerMetrics_Call) Run(run func(ctx context.Context, name string, currentValue float64, settings *calculator.PerRunnerMetricSettings)) *PerRunnerMetricHandler_CalculatePerRunnerMetrics_Call
func (*PerRunnerMetricHandler_CalculatePerRunnerMetrics_Call) RunAndReturn ¶
func (_c *PerRunnerMetricHandler_CalculatePerRunnerMetrics_Call) RunAndReturn(run func(context.Context, string, float64, *calculator.PerRunnerMetricSettings) (*metric.Datum, error)) *PerRunnerMetricHandler_CalculatePerRunnerMetrics_Call
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