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

package pull

import (
	mock "github.com/stretchr/testify/mock"
	"k8s.io/api/core/v1"
)

// 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}
}

// GetPullPolicyFor provides a mock function for the type MockManager
func (_mock *MockManager) GetPullPolicyFor(container string) (v1.PullPolicy, error) {
	ret := _mock.Called(container)

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

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

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

// GetPullPolicyFor is a helper method to define mock.On call
//   - container string
func (_e *MockManager_Expecter) GetPullPolicyFor(container interface{}) *MockManager_GetPullPolicyFor_Call {
	return &MockManager_GetPullPolicyFor_Call{Call: _e.mock.On("GetPullPolicyFor", container)}
}

func (_c *MockManager_GetPullPolicyFor_Call) Run(run func(container string)) *MockManager_GetPullPolicyFor_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 *MockManager_GetPullPolicyFor_Call) Return(pullPolicy v1.PullPolicy, err error) *MockManager_GetPullPolicyFor_Call {
	_c.Call.Return(pullPolicy, err)
	return _c
}

func (_c *MockManager_GetPullPolicyFor_Call) RunAndReturn(run func(container string) (v1.PullPolicy, error)) *MockManager_GetPullPolicyFor_Call {
	_c.Call.Return(run)
	return _c
}

// UpdatePolicyForContainer provides a mock function for the type MockManager
func (_mock *MockManager) UpdatePolicyForContainer(attempt int, imagePullErr *ImagePullError) bool {
	ret := _mock.Called(attempt, imagePullErr)

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

	var r0 bool
	if returnFunc, ok := ret.Get(0).(func(int, *ImagePullError) bool); ok {
		r0 = returnFunc(attempt, imagePullErr)
	} else {
		r0 = ret.Get(0).(bool)
	}
	return r0
}

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

// UpdatePolicyForContainer is a helper method to define mock.On call
//   - attempt int
//   - imagePullErr *ImagePullError
func (_e *MockManager_Expecter) UpdatePolicyForContainer(attempt interface{}, imagePullErr interface{}) *MockManager_UpdatePolicyForContainer_Call {
	return &MockManager_UpdatePolicyForContainer_Call{Call: _e.mock.On("UpdatePolicyForContainer", attempt, imagePullErr)}
}

func (_c *MockManager_UpdatePolicyForContainer_Call) Run(run func(attempt int, imagePullErr *ImagePullError)) *MockManager_UpdatePolicyForContainer_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 int
		if args[0] != nil {
			arg0 = args[0].(int)
		}
		var arg1 *ImagePullError
		if args[1] != nil {
			arg1 = args[1].(*ImagePullError)
		}
		run(
			arg0,
			arg1,
		)
	})
	return _c
}

func (_c *MockManager_UpdatePolicyForContainer_Call) Return(b bool) *MockManager_UpdatePolicyForContainer_Call {
	_c.Call.Return(b)
	return _c
}

func (_c *MockManager_UpdatePolicyForContainer_Call) RunAndReturn(run func(attempt int, imagePullErr *ImagePullError) bool) *MockManager_UpdatePolicyForContainer_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}

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

type mockPullLogger_Expecter struct {
	mock *mock.Mock
}

func (_m *mockPullLogger) EXPECT() *mockPullLogger_Expecter {
	return &mockPullLogger_Expecter{mock: &_m.Mock}
}

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

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

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

func (_c *mockPullLogger_Infoln_Call) Run(run func(args ...interface{})) *mockPullLogger_Infoln_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 *mockPullLogger_Infoln_Call) Return() *mockPullLogger_Infoln_Call {
	_c.Call.Return()
	return _c
}

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

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

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

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

func (_c *mockPullLogger_Warningln_Call) Run(run func(args ...interface{})) *mockPullLogger_Warningln_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 *mockPullLogger_Warningln_Call) Return() *mockPullLogger_Warningln_Call {
	_c.Call.Return()
	return _c
}

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