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

package utilmock

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

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

// ExecCmd provides a mock function with given fields: cmd, args
func (_m *ShellExec) ExecCmd(cmd string, args []string) ([]byte, error) {
	ret := _m.Called(cmd, args)

	var r0 []byte
	var r1 error
	if rf, ok := ret.Get(0).(func(string, []string) ([]byte, error)); ok {
		return rf(cmd, args)
	}
	if rf, ok := ret.Get(0).(func(string, []string) []byte); ok {
		r0 = rf(cmd, args)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]byte)
		}
	}

	if rf, ok := ret.Get(1).(func(string, []string) error); ok {
		r1 = rf(cmd, args)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// ExecCmdWithError provides a mock function with given fields: cmd, args
func (_m *ShellExec) ExecCmdWithError(cmd string, args []string) ([]byte, []byte, error) {
	ret := _m.Called(cmd, args)

	var r0 []byte
	var r1 []byte
	var r2 error
	if rf, ok := ret.Get(0).(func(string, []string) ([]byte, []byte, error)); ok {
		return rf(cmd, args)
	}
	if rf, ok := ret.Get(0).(func(string, []string) []byte); ok {
		r0 = rf(cmd, args)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]byte)
		}
	}

	if rf, ok := ret.Get(1).(func(string, []string) []byte); ok {
		r1 = rf(cmd, args)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).([]byte)
		}
	}

	if rf, ok := ret.Get(2).(func(string, []string) error); ok {
		r2 = rf(cmd, args)
	} else {
		r2 = ret.Error(2)
	}

	return r0, r1, r2
}

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

// NewShellExec creates a new instance of ShellExec. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewShellExec(t mockConstructorTestingTNewShellExec) *ShellExec {
	mock := &ShellExec{}
	mock.Mock.Test(t)

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

	return mock
}
