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

package mocks

import (
	context "context"
	exec "os/exec"

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

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

// Command provides a mock function with given fields: ctx, binary, arg
func (_m *BinaryExecutor) Command(ctx context.Context, binary string, arg ...string) (*exec.Cmd, error) {
	_va := make([]interface{}, len(arg))
	for _i := range arg {
		_va[_i] = arg[_i]
	}
	var _ca []interface{}
	_ca = append(_ca, ctx, binary)
	_ca = append(_ca, _va...)
	ret := _m.Called(_ca...)

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

	var r0 *exec.Cmd
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, string, ...string) (*exec.Cmd, error)); ok {
		return rf(ctx, binary, arg...)
	}
	if rf, ok := ret.Get(0).(func(context.Context, string, ...string) *exec.Cmd); ok {
		r0 = rf(ctx, binary, arg...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*exec.Cmd)
		}
	}

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

	return r0, r1
}

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

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

	return mock
}
