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 ClientProtocol

type ClientProtocol struct {
	mock.Mock
}

ClientProtocol is an autogenerated mock type for the ClientProtocol type

func (*ClientProtocol) Close

func (_m *ClientProtocol) Close() error

Close provides a mock function with given fields:

func (*ClientProtocol) Dispense

func (_m *ClientProtocol) Dispense(_a0 string) (interface{}, error)

Dispense provides a mock function with given fields: _a0

func (*ClientProtocol) Ping

func (_m *ClientProtocol) Ping() error

Ping provides a mock function with given fields:

type ConfigurableExperimentManager

type ConfigurableExperimentManager struct {
	mocks.ExperimentManager
}

func (*ConfigurableExperimentManager) Configure

type ConfigurableExperimentRunner

type ConfigurableExperimentRunner struct {
	mock.Mock
}

ConfigurableExperimentRunner is an autogenerated mock type for the ConfigurableExperimentRunner type

func NewConfigurableExperimentRunner

func NewConfigurableExperimentRunner(t mockConstructorTestingTNewConfigurableExperimentRunner) *ConfigurableExperimentRunner

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

func (*ConfigurableExperimentRunner) Configure

Configure provides a mock function with given fields: cfg

func (*ConfigurableExperimentRunner) GetTreatmentForRequest

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

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

func (*ConfigurableExperimentRunner) RegisterMetricsCollector

func (_m *ConfigurableExperimentRunner) RegisterMetricsCollector(collector metrics.Collector, metricsRegistrationHelper experimentrunner.MetricsRegistrationHelper) error

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

type ConfigurableStandardExperimentManager

type ConfigurableStandardExperimentManager struct {
	mocks.StandardExperimentManager
}

func (*ConfigurableStandardExperimentManager) Configure

type RPCClient

type RPCClient struct {
	mock.Mock
}

func (*RPCClient) Call

func (_m *RPCClient) Call(serviceMethod string, args interface{}, reply interface{}) error

Jump to

Keyboard shortcuts

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