// Code generated by mockery v2.14.0. DO NOT EDIT.

package mocks

import (
	http "net/http"

	metrics "github.com/caraml-dev/mlp/api/pkg/instrumentation/metrics"
	mock "github.com/stretchr/testify/mock"

	runner "github.com/caraml-dev/turing/engines/experiment/runner"
)

// ExperimentRunner is an autogenerated mock type for the ExperimentRunner type
type ExperimentRunner struct {
	mock.Mock
}

// GetTreatmentForRequest provides a mock function with given fields: header, payload, options
func (_m *ExperimentRunner) GetTreatmentForRequest(header http.Header, payload []byte, options runner.GetTreatmentOptions) (*runner.Treatment, error) {
	ret := _m.Called(header, payload, options)

	var r0 *runner.Treatment
	if rf, ok := ret.Get(0).(func(http.Header, []byte, runner.GetTreatmentOptions) *runner.Treatment); ok {
		r0 = rf(header, payload, options)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*runner.Treatment)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(http.Header, []byte, runner.GetTreatmentOptions) error); ok {
		r1 = rf(header, payload, options)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// RegisterMetricsCollector provides a mock function with given fields: collector, metricsRegistrationHelper
func (_m *ExperimentRunner) RegisterMetricsCollector(collector metrics.Collector, metricsRegistrationHelper runner.MetricsRegistrationHelper) error {
	ret := _m.Called(collector, metricsRegistrationHelper)

	var r0 error
	if rf, ok := ret.Get(0).(func(metrics.Collector, runner.MetricsRegistrationHelper) error); ok {
		r0 = rf(collector, metricsRegistrationHelper)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

type mockConstructorTestingTNewExperimentRunner interface {
	mock.TestingT
	Cleanup(func())
}

// 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 NewExperimentRunner(t mockConstructorTestingTNewExperimentRunner) *ExperimentRunner {
	mock := &ExperimentRunner{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}
