Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExperimentRunner ¶
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 ¶
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 ¶
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