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

package mocks

import (
	context "context"

	capabilities "github.com/smartcontractkit/chainlink-common/pkg/capabilities"

	mock "github.com/stretchr/testify/mock"
)

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

type TriggerExecutable_Expecter struct {
	mock *mock.Mock
}

func (_m *TriggerExecutable) EXPECT() *TriggerExecutable_Expecter {
	return &TriggerExecutable_Expecter{mock: &_m.Mock}
}

// RegisterTrigger provides a mock function with given fields: ctx, request
func (_m *TriggerExecutable) RegisterTrigger(ctx context.Context, request capabilities.TriggerRegistrationRequest) (<-chan capabilities.TriggerResponse, error) {
	ret := _m.Called(ctx, request)

	if len(ret) == 0 {
		panic("no return value specified for RegisterTrigger")
	}

	var r0 <-chan capabilities.TriggerResponse
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, capabilities.TriggerRegistrationRequest) (<-chan capabilities.TriggerResponse, error)); ok {
		return rf(ctx, request)
	}
	if rf, ok := ret.Get(0).(func(context.Context, capabilities.TriggerRegistrationRequest) <-chan capabilities.TriggerResponse); ok {
		r0 = rf(ctx, request)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(<-chan capabilities.TriggerResponse)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, capabilities.TriggerRegistrationRequest) error); ok {
		r1 = rf(ctx, request)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// TriggerExecutable_RegisterTrigger_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterTrigger'
type TriggerExecutable_RegisterTrigger_Call struct {
	*mock.Call
}

// RegisterTrigger is a helper method to define mock.On call
//   - ctx context.Context
//   - request capabilities.TriggerRegistrationRequest
func (_e *TriggerExecutable_Expecter) RegisterTrigger(ctx interface{}, request interface{}) *TriggerExecutable_RegisterTrigger_Call {
	return &TriggerExecutable_RegisterTrigger_Call{Call: _e.mock.On("RegisterTrigger", ctx, request)}
}

func (_c *TriggerExecutable_RegisterTrigger_Call) Run(run func(ctx context.Context, request capabilities.TriggerRegistrationRequest)) *TriggerExecutable_RegisterTrigger_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(capabilities.TriggerRegistrationRequest))
	})
	return _c
}

func (_c *TriggerExecutable_RegisterTrigger_Call) Return(_a0 <-chan capabilities.TriggerResponse, _a1 error) *TriggerExecutable_RegisterTrigger_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *TriggerExecutable_RegisterTrigger_Call) RunAndReturn(run func(context.Context, capabilities.TriggerRegistrationRequest) (<-chan capabilities.TriggerResponse, error)) *TriggerExecutable_RegisterTrigger_Call {
	_c.Call.Return(run)
	return _c
}

// UnregisterTrigger provides a mock function with given fields: ctx, request
func (_m *TriggerExecutable) UnregisterTrigger(ctx context.Context, request capabilities.TriggerRegistrationRequest) error {
	ret := _m.Called(ctx, request)

	if len(ret) == 0 {
		panic("no return value specified for UnregisterTrigger")
	}

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, capabilities.TriggerRegistrationRequest) error); ok {
		r0 = rf(ctx, request)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// TriggerExecutable_UnregisterTrigger_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnregisterTrigger'
type TriggerExecutable_UnregisterTrigger_Call struct {
	*mock.Call
}

// UnregisterTrigger is a helper method to define mock.On call
//   - ctx context.Context
//   - request capabilities.TriggerRegistrationRequest
func (_e *TriggerExecutable_Expecter) UnregisterTrigger(ctx interface{}, request interface{}) *TriggerExecutable_UnregisterTrigger_Call {
	return &TriggerExecutable_UnregisterTrigger_Call{Call: _e.mock.On("UnregisterTrigger", ctx, request)}
}

func (_c *TriggerExecutable_UnregisterTrigger_Call) Run(run func(ctx context.Context, request capabilities.TriggerRegistrationRequest)) *TriggerExecutable_UnregisterTrigger_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(capabilities.TriggerRegistrationRequest))
	})
	return _c
}

func (_c *TriggerExecutable_UnregisterTrigger_Call) Return(_a0 error) *TriggerExecutable_UnregisterTrigger_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *TriggerExecutable_UnregisterTrigger_Call) RunAndReturn(run func(context.Context, capabilities.TriggerRegistrationRequest) error) *TriggerExecutable_UnregisterTrigger_Call {
	_c.Call.Return(run)
	return _c
}

// NewTriggerExecutable creates a new instance of TriggerExecutable. 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 NewTriggerExecutable(t interface {
	mock.TestingT
	Cleanup(func())
}) *TriggerExecutable {
	mock := &TriggerExecutable{}
	mock.Mock.Test(t)

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

	return mock
}
