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

package vault

import (
	api "github.com/hashicorp/vault/api"
	mock "github.com/stretchr/testify/mock"
)

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

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

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

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

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

	return r0, r1
}

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

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

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

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

	return r0, r1
}

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

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

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

	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
}

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

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

	return mock
}
