// TEST MOCKERY BOILERPLATE

// Code generated by mockery; DO NOT EDIT.
// github.com/vektra/mockery
// template: testify

package cmd

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

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

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

	return mock
}

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

type mockargGetter_Expecter struct {
	mock *mock.Mock
}

func (_m *mockargGetter) EXPECT() *mockargGetter_Expecter {
	return &mockargGetter_Expecter{mock: &_m.Mock}
}

// GetString provides a mock function for the type mockargGetter
func (_mock *mockargGetter) GetString(name string) (string, error) {
	ret := _mock.Called(name)

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

	var r0 string
	var r1 error
	if returnFunc, ok := ret.Get(0).(func(string) (string, error)); ok {
		return returnFunc(name)
	}
	if returnFunc, ok := ret.Get(0).(func(string) string); ok {
		r0 = returnFunc(name)
	} else {
		r0 = ret.Get(0).(string)
	}
	if returnFunc, ok := ret.Get(1).(func(string) error); ok {
		r1 = returnFunc(name)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}

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

// GetString is a helper method to define mock.On call
//   - name string
func (_e *mockargGetter_Expecter) GetString(name interface{}) *mockargGetter_GetString_Call {
	return &mockargGetter_GetString_Call{Call: _e.mock.On("GetString", name)}
}

func (_c *mockargGetter_GetString_Call) Run(run func(name string)) *mockargGetter_GetString_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 string
		if args[0] != nil {
			arg0 = args[0].(string)
		}
		run(
			arg0,
		)
	})
	return _c
}

func (_c *mockargGetter_GetString_Call) Return(s string, err error) *mockargGetter_GetString_Call {
	_c.Call.Return(s, err)
	return _c
}

func (_c *mockargGetter_GetString_Call) RunAndReturn(run func(name string) (string, error)) *mockargGetter_GetString_Call {
	_c.Call.Return(run)
	return _c
}
