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

package volumes

import (
	"context"

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

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

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

	return mock
}

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

type MockManager_Expecter struct {
	mock *mock.Mock
}

func (_m *MockManager) EXPECT() *MockManager_Expecter {
	return &MockManager_Expecter{mock: &_m.Mock}
}

// Binds provides a mock function for the type MockManager
func (_mock *MockManager) Binds() []string {
	ret := _mock.Called()

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

	var r0 []string
	if returnFunc, ok := ret.Get(0).(func() []string); ok {
		r0 = returnFunc()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]string)
		}
	}
	return r0
}

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

// Binds is a helper method to define mock.On call
func (_e *MockManager_Expecter) Binds() *MockManager_Binds_Call {
	return &MockManager_Binds_Call{Call: _e.mock.On("Binds")}
}

func (_c *MockManager_Binds_Call) Run(run func()) *MockManager_Binds_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *MockManager_Binds_Call) Return(strings []string) *MockManager_Binds_Call {
	_c.Call.Return(strings)
	return _c
}

func (_c *MockManager_Binds_Call) RunAndReturn(run func() []string) *MockManager_Binds_Call {
	_c.Call.Return(run)
	return _c
}

// Create provides a mock function for the type MockManager
func (_mock *MockManager) Create(ctx context.Context, volume string) error {
	ret := _mock.Called(ctx, volume)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok {
		r0 = returnFunc(ctx, volume)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// Create is a helper method to define mock.On call
//   - ctx context.Context
//   - volume string
func (_e *MockManager_Expecter) Create(ctx interface{}, volume interface{}) *MockManager_Create_Call {
	return &MockManager_Create_Call{Call: _e.mock.On("Create", ctx, volume)}
}

func (_c *MockManager_Create_Call) Run(run func(ctx context.Context, volume string)) *MockManager_Create_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 string
		if args[1] != nil {
			arg1 = args[1].(string)
		}
		run(
			arg0,
			arg1,
		)
	})
	return _c
}

func (_c *MockManager_Create_Call) Return(err error) *MockManager_Create_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *MockManager_Create_Call) RunAndReturn(run func(ctx context.Context, volume string) error) *MockManager_Create_Call {
	_c.Call.Return(run)
	return _c
}

// CreateTemporary provides a mock function for the type MockManager
func (_mock *MockManager) CreateTemporary(ctx context.Context, destination string) error {
	ret := _mock.Called(ctx, destination)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok {
		r0 = returnFunc(ctx, destination)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// CreateTemporary is a helper method to define mock.On call
//   - ctx context.Context
//   - destination string
func (_e *MockManager_Expecter) CreateTemporary(ctx interface{}, destination interface{}) *MockManager_CreateTemporary_Call {
	return &MockManager_CreateTemporary_Call{Call: _e.mock.On("CreateTemporary", ctx, destination)}
}

func (_c *MockManager_CreateTemporary_Call) Run(run func(ctx context.Context, destination string)) *MockManager_CreateTemporary_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 string
		if args[1] != nil {
			arg1 = args[1].(string)
		}
		run(
			arg0,
			arg1,
		)
	})
	return _c
}

func (_c *MockManager_CreateTemporary_Call) Return(err error) *MockManager_CreateTemporary_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *MockManager_CreateTemporary_Call) RunAndReturn(run func(ctx context.Context, destination string) error) *MockManager_CreateTemporary_Call {
	_c.Call.Return(run)
	return _c
}

// RemoveTemporary provides a mock function for the type MockManager
func (_mock *MockManager) RemoveTemporary(ctx context.Context) error {
	ret := _mock.Called(ctx)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
		r0 = returnFunc(ctx)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// RemoveTemporary is a helper method to define mock.On call
//   - ctx context.Context
func (_e *MockManager_Expecter) RemoveTemporary(ctx interface{}) *MockManager_RemoveTemporary_Call {
	return &MockManager_RemoveTemporary_Call{Call: _e.mock.On("RemoveTemporary", ctx)}
}

func (_c *MockManager_RemoveTemporary_Call) Run(run func(ctx context.Context)) *MockManager_RemoveTemporary_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		run(
			arg0,
		)
	})
	return _c
}

func (_c *MockManager_RemoveTemporary_Call) Return(err error) *MockManager_RemoveTemporary_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *MockManager_RemoveTemporary_Call) RunAndReturn(run func(ctx context.Context) error) *MockManager_RemoveTemporary_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}

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

type mockDebugLogger_Expecter struct {
	mock *mock.Mock
}

func (_m *mockDebugLogger) EXPECT() *mockDebugLogger_Expecter {
	return &mockDebugLogger_Expecter{mock: &_m.Mock}
}

// Debugln provides a mock function for the type mockDebugLogger
func (_mock *mockDebugLogger) Debugln(args ...interface{}) {
	var _ca []interface{}
	_ca = append(_ca, args...)
	_mock.Called(_ca...)
	return
}

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

// Debugln is a helper method to define mock.On call
//   - args ...interface{}
func (_e *mockDebugLogger_Expecter) Debugln(args ...interface{}) *mockDebugLogger_Debugln_Call {
	return &mockDebugLogger_Debugln_Call{Call: _e.mock.On("Debugln",
		append([]interface{}{}, args...)...)}
}

func (_c *mockDebugLogger_Debugln_Call) Run(run func(args ...interface{})) *mockDebugLogger_Debugln_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 []interface{}
		variadicArgs := make([]interface{}, len(args)-0)
		for i, a := range args[0:] {
			if a != nil {
				variadicArgs[i] = a.(interface{})
			}
		}
		arg0 = variadicArgs
		run(
			arg0...,
		)
	})
	return _c
}

func (_c *mockDebugLogger_Debugln_Call) Return() *mockDebugLogger_Debugln_Call {
	_c.Call.Return()
	return _c
}

func (_c *mockDebugLogger_Debugln_Call) RunAndReturn(run func(args ...interface{})) *mockDebugLogger_Debugln_Call {
	_c.Run(run)
	return _c
}
