// 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"
)

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

type BaseCapability_Expecter struct {
	mock *mock.Mock
}

func (_m *BaseCapability) EXPECT() *BaseCapability_Expecter {
	return &BaseCapability_Expecter{mock: &_m.Mock}
}

// Info provides a mock function with given fields: ctx
func (_m *BaseCapability) Info(ctx context.Context) (capabilities.CapabilityInfo, error) {
	ret := _m.Called(ctx)

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

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

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

	return r0, r1
}

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

// Info is a helper method to define mock.On call
//   - ctx context.Context
func (_e *BaseCapability_Expecter) Info(ctx interface{}) *BaseCapability_Info_Call {
	return &BaseCapability_Info_Call{Call: _e.mock.On("Info", ctx)}
}

func (_c *BaseCapability_Info_Call) Run(run func(ctx context.Context)) *BaseCapability_Info_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context))
	})
	return _c
}

func (_c *BaseCapability_Info_Call) Return(_a0 capabilities.CapabilityInfo, _a1 error) *BaseCapability_Info_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

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

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

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

	return mock
}
