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

package vault

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

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

type MockClient_Expecter struct {
	mock *mock.Mock
}

func (_m *MockClient) EXPECT() *MockClient_Expecter {
	return &MockClient_Expecter{mock: &_m.Mock}
}

// Authenticate provides a mock function with given fields: auth
func (_m *MockClient) Authenticate(auth AuthMethod) error {
	ret := _m.Called(auth)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(AuthMethod) error); ok {
		r0 = rf(auth)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

// Authenticate is a helper method to define mock.On call
//   - auth AuthMethod
func (_e *MockClient_Expecter) Authenticate(auth interface{}) *MockClient_Authenticate_Call {
	return &MockClient_Authenticate_Call{Call: _e.mock.On("Authenticate", auth)}
}

func (_c *MockClient_Authenticate_Call) Run(run func(auth AuthMethod)) *MockClient_Authenticate_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(AuthMethod))
	})
	return _c
}

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

func (_c *MockClient_Authenticate_Call) RunAndReturn(run func(AuthMethod) error) *MockClient_Authenticate_Call {
	_c.Call.Return(run)
	return _c
}

// Delete provides a mock function with given fields: path
func (_m *MockClient) Delete(path string) error {
	ret := _m.Called(path)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(string) error); ok {
		r0 = rf(path)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

// Delete is a helper method to define mock.On call
//   - path string
func (_e *MockClient_Expecter) Delete(path interface{}) *MockClient_Delete_Call {
	return &MockClient_Delete_Call{Call: _e.mock.On("Delete", path)}
}

func (_c *MockClient_Delete_Call) Run(run func(path string)) *MockClient_Delete_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(string))
	})
	return _c
}

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

func (_c *MockClient_Delete_Call) RunAndReturn(run func(string) error) *MockClient_Delete_Call {
	_c.Call.Return(run)
	return _c
}

// Read provides a mock function with given fields: path
func (_m *MockClient) Read(path string) (Result, error) {
	ret := _m.Called(path)

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

	var r0 Result
	var r1 error
	if rf, ok := ret.Get(0).(func(string) (Result, error)); ok {
		return rf(path)
	}
	if rf, ok := ret.Get(0).(func(string) Result); ok {
		r0 = rf(path)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(Result)
		}
	}

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

	return r0, r1
}

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

// Read is a helper method to define mock.On call
//   - path string
func (_e *MockClient_Expecter) Read(path interface{}) *MockClient_Read_Call {
	return &MockClient_Read_Call{Call: _e.mock.On("Read", path)}
}

func (_c *MockClient_Read_Call) Run(run func(path string)) *MockClient_Read_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(string))
	})
	return _c
}

func (_c *MockClient_Read_Call) Return(_a0 Result, _a1 error) *MockClient_Read_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

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

// Write provides a mock function with given fields: path, data
func (_m *MockClient) Write(path string, data map[string]interface{}) (Result, error) {
	ret := _m.Called(path, data)

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

	var r0 Result
	var r1 error
	if rf, ok := ret.Get(0).(func(string, map[string]interface{}) (Result, error)); ok {
		return rf(path, data)
	}
	if rf, ok := ret.Get(0).(func(string, map[string]interface{}) Result); ok {
		r0 = rf(path, data)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(Result)
		}
	}

	if rf, ok := ret.Get(1).(func(string, map[string]interface{}) error); ok {
		r1 = rf(path, data)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

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

// Write is a helper method to define mock.On call
//   - path string
//   - data map[string]interface{}
func (_e *MockClient_Expecter) Write(path interface{}, data interface{}) *MockClient_Write_Call {
	return &MockClient_Write_Call{Call: _e.mock.On("Write", path, data)}
}

func (_c *MockClient_Write_Call) Run(run func(path string, data map[string]interface{})) *MockClient_Write_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(string), args[1].(map[string]interface{}))
	})
	return _c
}

func (_c *MockClient_Write_Call) Return(_a0 Result, _a1 error) *MockClient_Write_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *MockClient_Write_Call) RunAndReturn(run func(string, map[string]interface{}) (Result, error)) *MockClient_Write_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
