mocks

package
v0.0.0-...-84339fa Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExperimentRunner

type ExperimentRunner struct {
	mock.Mock
}

ExperimentRunner is an autogenerated mock type for the ExperimentRunner type

func NewExperimentRunner

func NewExperimentRunner(t mockConstructorTestingTNewExperimentRunner) *ExperimentRunner

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

func (*ExperimentRunner) GetTreatmentForRequest

func (_m *ExperimentRunner) GetTreatmentForRequest(header http.Header, payload []byte, options runner.GetTreatmentOptions) (*runner.Treatment, error)

GetTreatmentForRequest provides a mock function with given fields: header, payload, options

func (*ExperimentRunner) RegisterMetricsCollector

func (_m *ExperimentRunner) RegisterMetricsCollector(collector metrics.Collector, metricsRegistrationHelper runner.MetricsRegistrationHelper) error

RegisterMetricsCollector provides a mock function with given fields: collector, metricsRegistrationHelper

type Interceptor

type Interceptor struct {
	mock.Mock
}

Interceptor is an autogenerated mock type for the Interceptor type

func (*Interceptor) AfterCompletion

func (_m *Interceptor) AfterCompletion(ctx context.Context, err error)

AfterCompletion provides a mock function with given fields: ctx, err

func (*Interceptor) BeforeDispatch

func (_m *Interceptor) BeforeDispatch(ctx context.Context) context.Context

BeforeDispatch provides a mock function with given fields: ctx

type MetricsRegistrationHelper

type MetricsRegistrationHelper struct {
	mock.Mock
}

MetricsRegistrationHelper is an autogenerated mock type for the MetricsRegistrationHelper type

func NewMetricsRegistrationHelper

func NewMetricsRegistrationHelper(t mockConstructorTestingTNewMetricsRegistrationHelper) *MetricsRegistrationHelper

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

func (*MetricsRegistrationHelper) Register

func (_m *MetricsRegistrationHelper) Register(metrics []instrumentation.Metric) error

Register provides a mock function with given fields: metrics

Jump to

Keyboard shortcuts

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