// Code generated by moq; DO NOT EDIT.
// github.com/matryer/moq

package fakes

import (
	"context"
	"sync"
	"time"

	"github.com/rancher/norman/controller"
	"github.com/rancher/norman/objectclient"
	v3 "github.com/rancher/rancher/pkg/apis/management.cattle.io/v3"
	v31 "github.com/rancher/rancher/pkg/generated/norman/management.cattle.io/v3"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/apimachinery/pkg/watch"
	"k8s.io/client-go/tools/cache"
)

var (
	lockPodSecurityPolicyTemplateListerMockGet  sync.RWMutex
	lockPodSecurityPolicyTemplateListerMockList sync.RWMutex
)

// Ensure, that PodSecurityPolicyTemplateListerMock does implement v31.PodSecurityPolicyTemplateLister.
// If this is not the case, regenerate this file with moq.
var _ v31.PodSecurityPolicyTemplateLister = &PodSecurityPolicyTemplateListerMock{}

// PodSecurityPolicyTemplateListerMock is a mock implementation of v31.PodSecurityPolicyTemplateLister.
//
//     func TestSomethingThatUsesPodSecurityPolicyTemplateLister(t *testing.T) {
//
//         // make and configure a mocked v31.PodSecurityPolicyTemplateLister
//         mockedPodSecurityPolicyTemplateLister := &PodSecurityPolicyTemplateListerMock{
//             GetFunc: func(namespace string, name string) (*v3.PodSecurityPolicyTemplate, error) {
// 	               panic("mock out the Get method")
//             },
//             ListFunc: func(namespace string, selector labels.Selector) ([]*v3.PodSecurityPolicyTemplate, error) {
// 	               panic("mock out the List method")
//             },
//         }
//
//         // use mockedPodSecurityPolicyTemplateLister in code that requires v31.PodSecurityPolicyTemplateLister
//         // and then make assertions.
//
//     }
type PodSecurityPolicyTemplateListerMock struct {
	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string) (*v3.PodSecurityPolicyTemplate, error)

	// ListFunc mocks the List method.
	ListFunc func(namespace string, selector labels.Selector) ([]*v3.PodSecurityPolicyTemplate, error)

	// calls tracks calls to the methods.
	calls struct {
		// Get holds details about calls to the Get method.
		Get []struct {
			// Namespace is the namespace argument value.
			Namespace string
			// Name is the name argument value.
			Name string
		}
		// List holds details about calls to the List method.
		List []struct {
			// Namespace is the namespace argument value.
			Namespace string
			// Selector is the selector argument value.
			Selector labels.Selector
		}
	}
}

// Get calls GetFunc.
func (mock *PodSecurityPolicyTemplateListerMock) Get(namespace string, name string) (*v3.PodSecurityPolicyTemplate, error) {
	if mock.GetFunc == nil {
		panic("PodSecurityPolicyTemplateListerMock.GetFunc: method is nil but PodSecurityPolicyTemplateLister.Get was just called")
	}
	callInfo := struct {
		Namespace string
		Name      string
	}{
		Namespace: namespace,
		Name:      name,
	}
	lockPodSecurityPolicyTemplateListerMockGet.Lock()
	mock.calls.Get = append(mock.calls.Get, callInfo)
	lockPodSecurityPolicyTemplateListerMockGet.Unlock()
	return mock.GetFunc(namespace, name)
}

// GetCalls gets all the calls that were made to Get.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateLister.GetCalls())
func (mock *PodSecurityPolicyTemplateListerMock) GetCalls() []struct {
	Namespace string
	Name      string
} {
	var calls []struct {
		Namespace string
		Name      string
	}
	lockPodSecurityPolicyTemplateListerMockGet.RLock()
	calls = mock.calls.Get
	lockPodSecurityPolicyTemplateListerMockGet.RUnlock()
	return calls
}

// List calls ListFunc.
func (mock *PodSecurityPolicyTemplateListerMock) List(namespace string, selector labels.Selector) ([]*v3.PodSecurityPolicyTemplate, error) {
	if mock.ListFunc == nil {
		panic("PodSecurityPolicyTemplateListerMock.ListFunc: method is nil but PodSecurityPolicyTemplateLister.List was just called")
	}
	callInfo := struct {
		Namespace string
		Selector  labels.Selector
	}{
		Namespace: namespace,
		Selector:  selector,
	}
	lockPodSecurityPolicyTemplateListerMockList.Lock()
	mock.calls.List = append(mock.calls.List, callInfo)
	lockPodSecurityPolicyTemplateListerMockList.Unlock()
	return mock.ListFunc(namespace, selector)
}

// ListCalls gets all the calls that were made to List.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateLister.ListCalls())
func (mock *PodSecurityPolicyTemplateListerMock) ListCalls() []struct {
	Namespace string
	Selector  labels.Selector
} {
	var calls []struct {
		Namespace string
		Selector  labels.Selector
	}
	lockPodSecurityPolicyTemplateListerMockList.RLock()
	calls = mock.calls.List
	lockPodSecurityPolicyTemplateListerMockList.RUnlock()
	return calls
}

var (
	lockPodSecurityPolicyTemplateControllerMockAddClusterScopedFeatureHandler sync.RWMutex
	lockPodSecurityPolicyTemplateControllerMockAddClusterScopedHandler        sync.RWMutex
	lockPodSecurityPolicyTemplateControllerMockAddFeatureHandler              sync.RWMutex
	lockPodSecurityPolicyTemplateControllerMockAddHandler                     sync.RWMutex
	lockPodSecurityPolicyTemplateControllerMockEnqueue                        sync.RWMutex
	lockPodSecurityPolicyTemplateControllerMockEnqueueAfter                   sync.RWMutex
	lockPodSecurityPolicyTemplateControllerMockGeneric                        sync.RWMutex
	lockPodSecurityPolicyTemplateControllerMockInformer                       sync.RWMutex
	lockPodSecurityPolicyTemplateControllerMockLister                         sync.RWMutex
)

// Ensure, that PodSecurityPolicyTemplateControllerMock does implement v31.PodSecurityPolicyTemplateController.
// If this is not the case, regenerate this file with moq.
var _ v31.PodSecurityPolicyTemplateController = &PodSecurityPolicyTemplateControllerMock{}

// PodSecurityPolicyTemplateControllerMock is a mock implementation of v31.PodSecurityPolicyTemplateController.
//
//     func TestSomethingThatUsesPodSecurityPolicyTemplateController(t *testing.T) {
//
//         // make and configure a mocked v31.PodSecurityPolicyTemplateController
//         mockedPodSecurityPolicyTemplateController := &PodSecurityPolicyTemplateControllerMock{
//             AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v31.PodSecurityPolicyTemplateHandlerFunc)  {
// 	               panic("mock out the AddClusterScopedFeatureHandler method")
//             },
//             AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v31.PodSecurityPolicyTemplateHandlerFunc)  {
// 	               panic("mock out the AddClusterScopedHandler method")
//             },
//             AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, syncMoqParam v31.PodSecurityPolicyTemplateHandlerFunc)  {
// 	               panic("mock out the AddFeatureHandler method")
//             },
//             AddHandlerFunc: func(ctx context.Context, name string, handler v31.PodSecurityPolicyTemplateHandlerFunc)  {
// 	               panic("mock out the AddHandler method")
//             },
//             EnqueueFunc: func(namespace string, name string)  {
// 	               panic("mock out the Enqueue method")
//             },
//             EnqueueAfterFunc: func(namespace string, name string, after time.Duration)  {
// 	               panic("mock out the EnqueueAfter method")
//             },
//             GenericFunc: func() controller.GenericController {
// 	               panic("mock out the Generic method")
//             },
//             InformerFunc: func() cache.SharedIndexInformer {
// 	               panic("mock out the Informer method")
//             },
//             ListerFunc: func() v31.PodSecurityPolicyTemplateLister {
// 	               panic("mock out the Lister method")
//             },
//         }
//
//         // use mockedPodSecurityPolicyTemplateController in code that requires v31.PodSecurityPolicyTemplateController
//         // and then make assertions.
//
//     }
type PodSecurityPolicyTemplateControllerMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v31.PodSecurityPolicyTemplateHandlerFunc)

	// AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method.
	AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v31.PodSecurityPolicyTemplateHandlerFunc)

	// AddFeatureHandlerFunc mocks the AddFeatureHandler method.
	AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, syncMoqParam v31.PodSecurityPolicyTemplateHandlerFunc)

	// AddHandlerFunc mocks the AddHandler method.
	AddHandlerFunc func(ctx context.Context, name string, handler v31.PodSecurityPolicyTemplateHandlerFunc)

	// EnqueueFunc mocks the Enqueue method.
	EnqueueFunc func(namespace string, name string)

	// EnqueueAfterFunc mocks the EnqueueAfter method.
	EnqueueAfterFunc func(namespace string, name string, after time.Duration)

	// GenericFunc mocks the Generic method.
	GenericFunc func() controller.GenericController

	// InformerFunc mocks the Informer method.
	InformerFunc func() cache.SharedIndexInformer

	// ListerFunc mocks the Lister method.
	ListerFunc func() v31.PodSecurityPolicyTemplateLister

	// calls tracks calls to the methods.
	calls struct {
		// AddClusterScopedFeatureHandler holds details about calls to the AddClusterScopedFeatureHandler method.
		AddClusterScopedFeatureHandler []struct {
			// Ctx is the ctx argument value.
			Ctx context.Context
			// Enabled is the enabled argument value.
			Enabled func() bool
			// Name is the name argument value.
			Name string
			// ClusterName is the clusterName argument value.
			ClusterName string
			// Handler is the handler argument value.
			Handler v31.PodSecurityPolicyTemplateHandlerFunc
		}
		// AddClusterScopedHandler holds details about calls to the AddClusterScopedHandler method.
		AddClusterScopedHandler []struct {
			// Ctx is the ctx argument value.
			Ctx context.Context
			// Name is the name argument value.
			Name string
			// ClusterName is the clusterName argument value.
			ClusterName string
			// Handler is the handler argument value.
			Handler v31.PodSecurityPolicyTemplateHandlerFunc
		}
		// AddFeatureHandler holds details about calls to the AddFeatureHandler method.
		AddFeatureHandler []struct {
			// Ctx is the ctx argument value.
			Ctx context.Context
			// Enabled is the enabled argument value.
			Enabled func() bool
			// Name is the name argument value.
			Name string
			// Sync is the sync argument value.
			Sync v31.PodSecurityPolicyTemplateHandlerFunc
		}
		// AddHandler holds details about calls to the AddHandler method.
		AddHandler []struct {
			// Ctx is the ctx argument value.
			Ctx context.Context
			// Name is the name argument value.
			Name string
			// Handler is the handler argument value.
			Handler v31.PodSecurityPolicyTemplateHandlerFunc
		}
		// Enqueue holds details about calls to the Enqueue method.
		Enqueue []struct {
			// Namespace is the namespace argument value.
			Namespace string
			// Name is the name argument value.
			Name string
		}
		// EnqueueAfter holds details about calls to the EnqueueAfter method.
		EnqueueAfter []struct {
			// Namespace is the namespace argument value.
			Namespace string
			// Name is the name argument value.
			Name string
			// After is the after argument value.
			After time.Duration
		}
		// Generic holds details about calls to the Generic method.
		Generic []struct {
		}
		// Informer holds details about calls to the Informer method.
		Informer []struct {
		}
		// Lister holds details about calls to the Lister method.
		Lister []struct {
		}
	}
}

// AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (mock *PodSecurityPolicyTemplateControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v31.PodSecurityPolicyTemplateHandlerFunc) {
	if mock.AddClusterScopedFeatureHandlerFunc == nil {
		panic("PodSecurityPolicyTemplateControllerMock.AddClusterScopedFeatureHandlerFunc: method is nil but PodSecurityPolicyTemplateController.AddClusterScopedFeatureHandler was just called")
	}
	callInfo := struct {
		Ctx         context.Context
		Enabled     func() bool
		Name        string
		ClusterName string
		Handler     v31.PodSecurityPolicyTemplateHandlerFunc
	}{
		Ctx:         ctx,
		Enabled:     enabled,
		Name:        name,
		ClusterName: clusterName,
		Handler:     handler,
	}
	lockPodSecurityPolicyTemplateControllerMockAddClusterScopedFeatureHandler.Lock()
	mock.calls.AddClusterScopedFeatureHandler = append(mock.calls.AddClusterScopedFeatureHandler, callInfo)
	lockPodSecurityPolicyTemplateControllerMockAddClusterScopedFeatureHandler.Unlock()
	mock.AddClusterScopedFeatureHandlerFunc(ctx, enabled, name, clusterName, handler)
}

// AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateController.AddClusterScopedFeatureHandlerCalls())
func (mock *PodSecurityPolicyTemplateControllerMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Handler     v31.PodSecurityPolicyTemplateHandlerFunc
} {
	var calls []struct {
		Ctx         context.Context
		Enabled     func() bool
		Name        string
		ClusterName string
		Handler     v31.PodSecurityPolicyTemplateHandlerFunc
	}
	lockPodSecurityPolicyTemplateControllerMockAddClusterScopedFeatureHandler.RLock()
	calls = mock.calls.AddClusterScopedFeatureHandler
	lockPodSecurityPolicyTemplateControllerMockAddClusterScopedFeatureHandler.RUnlock()
	return calls
}

// AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (mock *PodSecurityPolicyTemplateControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v31.PodSecurityPolicyTemplateHandlerFunc) {
	if mock.AddClusterScopedHandlerFunc == nil {
		panic("PodSecurityPolicyTemplateControllerMock.AddClusterScopedHandlerFunc: method is nil but PodSecurityPolicyTemplateController.AddClusterScopedHandler was just called")
	}
	callInfo := struct {
		Ctx         context.Context
		Name        string
		ClusterName string
		Handler     v31.PodSecurityPolicyTemplateHandlerFunc
	}{
		Ctx:         ctx,
		Name:        name,
		ClusterName: clusterName,
		Handler:     handler,
	}
	lockPodSecurityPolicyTemplateControllerMockAddClusterScopedHandler.Lock()
	mock.calls.AddClusterScopedHandler = append(mock.calls.AddClusterScopedHandler, callInfo)
	lockPodSecurityPolicyTemplateControllerMockAddClusterScopedHandler.Unlock()
	mock.AddClusterScopedHandlerFunc(ctx, name, clusterName, handler)
}

// AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateController.AddClusterScopedHandlerCalls())
func (mock *PodSecurityPolicyTemplateControllerMock) AddClusterScopedHandlerCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Handler     v31.PodSecurityPolicyTemplateHandlerFunc
} {
	var calls []struct {
		Ctx         context.Context
		Name        string
		ClusterName string
		Handler     v31.PodSecurityPolicyTemplateHandlerFunc
	}
	lockPodSecurityPolicyTemplateControllerMockAddClusterScopedHandler.RLock()
	calls = mock.calls.AddClusterScopedHandler
	lockPodSecurityPolicyTemplateControllerMockAddClusterScopedHandler.RUnlock()
	return calls
}

// AddFeatureHandler calls AddFeatureHandlerFunc.
func (mock *PodSecurityPolicyTemplateControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, syncMoqParam v31.PodSecurityPolicyTemplateHandlerFunc) {
	if mock.AddFeatureHandlerFunc == nil {
		panic("PodSecurityPolicyTemplateControllerMock.AddFeatureHandlerFunc: method is nil but PodSecurityPolicyTemplateController.AddFeatureHandler was just called")
	}
	callInfo := struct {
		Ctx     context.Context
		Enabled func() bool
		Name    string
		Sync    v31.PodSecurityPolicyTemplateHandlerFunc
	}{
		Ctx:     ctx,
		Enabled: enabled,
		Name:    name,
		Sync:    syncMoqParam,
	}
	lockPodSecurityPolicyTemplateControllerMockAddFeatureHandler.Lock()
	mock.calls.AddFeatureHandler = append(mock.calls.AddFeatureHandler, callInfo)
	lockPodSecurityPolicyTemplateControllerMockAddFeatureHandler.Unlock()
	mock.AddFeatureHandlerFunc(ctx, enabled, name, syncMoqParam)
}

// AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateController.AddFeatureHandlerCalls())
func (mock *PodSecurityPolicyTemplateControllerMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v31.PodSecurityPolicyTemplateHandlerFunc
} {
	var calls []struct {
		Ctx     context.Context
		Enabled func() bool
		Name    string
		Sync    v31.PodSecurityPolicyTemplateHandlerFunc
	}
	lockPodSecurityPolicyTemplateControllerMockAddFeatureHandler.RLock()
	calls = mock.calls.AddFeatureHandler
	lockPodSecurityPolicyTemplateControllerMockAddFeatureHandler.RUnlock()
	return calls
}

// AddHandler calls AddHandlerFunc.
func (mock *PodSecurityPolicyTemplateControllerMock) AddHandler(ctx context.Context, name string, handler v31.PodSecurityPolicyTemplateHandlerFunc) {
	if mock.AddHandlerFunc == nil {
		panic("PodSecurityPolicyTemplateControllerMock.AddHandlerFunc: method is nil but PodSecurityPolicyTemplateController.AddHandler was just called")
	}
	callInfo := struct {
		Ctx     context.Context
		Name    string
		Handler v31.PodSecurityPolicyTemplateHandlerFunc
	}{
		Ctx:     ctx,
		Name:    name,
		Handler: handler,
	}
	lockPodSecurityPolicyTemplateControllerMockAddHandler.Lock()
	mock.calls.AddHandler = append(mock.calls.AddHandler, callInfo)
	lockPodSecurityPolicyTemplateControllerMockAddHandler.Unlock()
	mock.AddHandlerFunc(ctx, name, handler)
}

// AddHandlerCalls gets all the calls that were made to AddHandler.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateController.AddHandlerCalls())
func (mock *PodSecurityPolicyTemplateControllerMock) AddHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler v31.PodSecurityPolicyTemplateHandlerFunc
} {
	var calls []struct {
		Ctx     context.Context
		Name    string
		Handler v31.PodSecurityPolicyTemplateHandlerFunc
	}
	lockPodSecurityPolicyTemplateControllerMockAddHandler.RLock()
	calls = mock.calls.AddHandler
	lockPodSecurityPolicyTemplateControllerMockAddHandler.RUnlock()
	return calls
}

// Enqueue calls EnqueueFunc.
func (mock *PodSecurityPolicyTemplateControllerMock) Enqueue(namespace string, name string) {
	if mock.EnqueueFunc == nil {
		panic("PodSecurityPolicyTemplateControllerMock.EnqueueFunc: method is nil but PodSecurityPolicyTemplateController.Enqueue was just called")
	}
	callInfo := struct {
		Namespace string
		Name      string
	}{
		Namespace: namespace,
		Name:      name,
	}
	lockPodSecurityPolicyTemplateControllerMockEnqueue.Lock()
	mock.calls.Enqueue = append(mock.calls.Enqueue, callInfo)
	lockPodSecurityPolicyTemplateControllerMockEnqueue.Unlock()
	mock.EnqueueFunc(namespace, name)
}

// EnqueueCalls gets all the calls that were made to Enqueue.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateController.EnqueueCalls())
func (mock *PodSecurityPolicyTemplateControllerMock) EnqueueCalls() []struct {
	Namespace string
	Name      string
} {
	var calls []struct {
		Namespace string
		Name      string
	}
	lockPodSecurityPolicyTemplateControllerMockEnqueue.RLock()
	calls = mock.calls.Enqueue
	lockPodSecurityPolicyTemplateControllerMockEnqueue.RUnlock()
	return calls
}

// EnqueueAfter calls EnqueueAfterFunc.
func (mock *PodSecurityPolicyTemplateControllerMock) EnqueueAfter(namespace string, name string, after time.Duration) {
	if mock.EnqueueAfterFunc == nil {
		panic("PodSecurityPolicyTemplateControllerMock.EnqueueAfterFunc: method is nil but PodSecurityPolicyTemplateController.EnqueueAfter was just called")
	}
	callInfo := struct {
		Namespace string
		Name      string
		After     time.Duration
	}{
		Namespace: namespace,
		Name:      name,
		After:     after,
	}
	lockPodSecurityPolicyTemplateControllerMockEnqueueAfter.Lock()
	mock.calls.EnqueueAfter = append(mock.calls.EnqueueAfter, callInfo)
	lockPodSecurityPolicyTemplateControllerMockEnqueueAfter.Unlock()
	mock.EnqueueAfterFunc(namespace, name, after)
}

// EnqueueAfterCalls gets all the calls that were made to EnqueueAfter.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateController.EnqueueAfterCalls())
func (mock *PodSecurityPolicyTemplateControllerMock) EnqueueAfterCalls() []struct {
	Namespace string
	Name      string
	After     time.Duration
} {
	var calls []struct {
		Namespace string
		Name      string
		After     time.Duration
	}
	lockPodSecurityPolicyTemplateControllerMockEnqueueAfter.RLock()
	calls = mock.calls.EnqueueAfter
	lockPodSecurityPolicyTemplateControllerMockEnqueueAfter.RUnlock()
	return calls
}

// Generic calls GenericFunc.
func (mock *PodSecurityPolicyTemplateControllerMock) Generic() controller.GenericController {
	if mock.GenericFunc == nil {
		panic("PodSecurityPolicyTemplateControllerMock.GenericFunc: method is nil but PodSecurityPolicyTemplateController.Generic was just called")
	}
	callInfo := struct {
	}{}
	lockPodSecurityPolicyTemplateControllerMockGeneric.Lock()
	mock.calls.Generic = append(mock.calls.Generic, callInfo)
	lockPodSecurityPolicyTemplateControllerMockGeneric.Unlock()
	return mock.GenericFunc()
}

// GenericCalls gets all the calls that were made to Generic.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateController.GenericCalls())
func (mock *PodSecurityPolicyTemplateControllerMock) GenericCalls() []struct {
} {
	var calls []struct {
	}
	lockPodSecurityPolicyTemplateControllerMockGeneric.RLock()
	calls = mock.calls.Generic
	lockPodSecurityPolicyTemplateControllerMockGeneric.RUnlock()
	return calls
}

// Informer calls InformerFunc.
func (mock *PodSecurityPolicyTemplateControllerMock) Informer() cache.SharedIndexInformer {
	if mock.InformerFunc == nil {
		panic("PodSecurityPolicyTemplateControllerMock.InformerFunc: method is nil but PodSecurityPolicyTemplateController.Informer was just called")
	}
	callInfo := struct {
	}{}
	lockPodSecurityPolicyTemplateControllerMockInformer.Lock()
	mock.calls.Informer = append(mock.calls.Informer, callInfo)
	lockPodSecurityPolicyTemplateControllerMockInformer.Unlock()
	return mock.InformerFunc()
}

// InformerCalls gets all the calls that were made to Informer.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateController.InformerCalls())
func (mock *PodSecurityPolicyTemplateControllerMock) InformerCalls() []struct {
} {
	var calls []struct {
	}
	lockPodSecurityPolicyTemplateControllerMockInformer.RLock()
	calls = mock.calls.Informer
	lockPodSecurityPolicyTemplateControllerMockInformer.RUnlock()
	return calls
}

// Lister calls ListerFunc.
func (mock *PodSecurityPolicyTemplateControllerMock) Lister() v31.PodSecurityPolicyTemplateLister {
	if mock.ListerFunc == nil {
		panic("PodSecurityPolicyTemplateControllerMock.ListerFunc: method is nil but PodSecurityPolicyTemplateController.Lister was just called")
	}
	callInfo := struct {
	}{}
	lockPodSecurityPolicyTemplateControllerMockLister.Lock()
	mock.calls.Lister = append(mock.calls.Lister, callInfo)
	lockPodSecurityPolicyTemplateControllerMockLister.Unlock()
	return mock.ListerFunc()
}

// ListerCalls gets all the calls that were made to Lister.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateController.ListerCalls())
func (mock *PodSecurityPolicyTemplateControllerMock) ListerCalls() []struct {
} {
	var calls []struct {
	}
	lockPodSecurityPolicyTemplateControllerMockLister.RLock()
	calls = mock.calls.Lister
	lockPodSecurityPolicyTemplateControllerMockLister.RUnlock()
	return calls
}

var (
	lockPodSecurityPolicyTemplateInterfaceMockAddClusterScopedFeatureHandler   sync.RWMutex
	lockPodSecurityPolicyTemplateInterfaceMockAddClusterScopedFeatureLifecycle sync.RWMutex
	lockPodSecurityPolicyTemplateInterfaceMockAddClusterScopedHandler          sync.RWMutex
	lockPodSecurityPolicyTemplateInterfaceMockAddClusterScopedLifecycle        sync.RWMutex
	lockPodSecurityPolicyTemplateInterfaceMockAddFeatureHandler                sync.RWMutex
	lockPodSecurityPolicyTemplateInterfaceMockAddFeatureLifecycle              sync.RWMutex
	lockPodSecurityPolicyTemplateInterfaceMockAddHandler                       sync.RWMutex
	lockPodSecurityPolicyTemplateInterfaceMockAddLifecycle                     sync.RWMutex
	lockPodSecurityPolicyTemplateInterfaceMockController                       sync.RWMutex
	lockPodSecurityPolicyTemplateInterfaceMockCreate                           sync.RWMutex
	lockPodSecurityPolicyTemplateInterfaceMockDelete                           sync.RWMutex
	lockPodSecurityPolicyTemplateInterfaceMockDeleteCollection                 sync.RWMutex
	lockPodSecurityPolicyTemplateInterfaceMockDeleteNamespaced                 sync.RWMutex
	lockPodSecurityPolicyTemplateInterfaceMockGet                              sync.RWMutex
	lockPodSecurityPolicyTemplateInterfaceMockGetNamespaced                    sync.RWMutex
	lockPodSecurityPolicyTemplateInterfaceMockList                             sync.RWMutex
	lockPodSecurityPolicyTemplateInterfaceMockListNamespaced                   sync.RWMutex
	lockPodSecurityPolicyTemplateInterfaceMockObjectClient                     sync.RWMutex
	lockPodSecurityPolicyTemplateInterfaceMockUpdate                           sync.RWMutex
	lockPodSecurityPolicyTemplateInterfaceMockWatch                            sync.RWMutex
)

// Ensure, that PodSecurityPolicyTemplateInterfaceMock does implement v31.PodSecurityPolicyTemplateInterface.
// If this is not the case, regenerate this file with moq.
var _ v31.PodSecurityPolicyTemplateInterface = &PodSecurityPolicyTemplateInterfaceMock{}

// PodSecurityPolicyTemplateInterfaceMock is a mock implementation of v31.PodSecurityPolicyTemplateInterface.
//
//     func TestSomethingThatUsesPodSecurityPolicyTemplateInterface(t *testing.T) {
//
//         // make and configure a mocked v31.PodSecurityPolicyTemplateInterface
//         mockedPodSecurityPolicyTemplateInterface := &PodSecurityPolicyTemplateInterfaceMock{
//             AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, syncMoqParam v31.PodSecurityPolicyTemplateHandlerFunc)  {
// 	               panic("mock out the AddClusterScopedFeatureHandler method")
//             },
//             AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v31.PodSecurityPolicyTemplateLifecycle)  {
// 	               panic("mock out the AddClusterScopedFeatureLifecycle method")
//             },
//             AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, syncMoqParam v31.PodSecurityPolicyTemplateHandlerFunc)  {
// 	               panic("mock out the AddClusterScopedHandler method")
//             },
//             AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v31.PodSecurityPolicyTemplateLifecycle)  {
// 	               panic("mock out the AddClusterScopedLifecycle method")
//             },
//             AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, syncMoqParam v31.PodSecurityPolicyTemplateHandlerFunc)  {
// 	               panic("mock out the AddFeatureHandler method")
//             },
//             AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v31.PodSecurityPolicyTemplateLifecycle)  {
// 	               panic("mock out the AddFeatureLifecycle method")
//             },
//             AddHandlerFunc: func(ctx context.Context, name string, syncMoqParam v31.PodSecurityPolicyTemplateHandlerFunc)  {
// 	               panic("mock out the AddHandler method")
//             },
//             AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v31.PodSecurityPolicyTemplateLifecycle)  {
// 	               panic("mock out the AddLifecycle method")
//             },
//             ControllerFunc: func() v31.PodSecurityPolicyTemplateController {
// 	               panic("mock out the Controller method")
//             },
//             CreateFunc: func(in1 *v3.PodSecurityPolicyTemplate) (*v3.PodSecurityPolicyTemplate, error) {
// 	               panic("mock out the Create method")
//             },
//             DeleteFunc: func(name string, options *metav1.DeleteOptions) error {
// 	               panic("mock out the Delete method")
//             },
//             DeleteCollectionFunc: func(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error {
// 	               panic("mock out the DeleteCollection method")
//             },
//             DeleteNamespacedFunc: func(namespace string, name string, options *metav1.DeleteOptions) error {
// 	               panic("mock out the DeleteNamespaced method")
//             },
//             GetFunc: func(name string, opts metav1.GetOptions) (*v3.PodSecurityPolicyTemplate, error) {
// 	               panic("mock out the Get method")
//             },
//             GetNamespacedFunc: func(namespace string, name string, opts metav1.GetOptions) (*v3.PodSecurityPolicyTemplate, error) {
// 	               panic("mock out the GetNamespaced method")
//             },
//             ListFunc: func(opts metav1.ListOptions) (*v3.PodSecurityPolicyTemplateList, error) {
// 	               panic("mock out the List method")
//             },
//             ListNamespacedFunc: func(namespace string, opts metav1.ListOptions) (*v3.PodSecurityPolicyTemplateList, error) {
// 	               panic("mock out the ListNamespaced method")
//             },
//             ObjectClientFunc: func() *objectclient.ObjectClient {
// 	               panic("mock out the ObjectClient method")
//             },
//             UpdateFunc: func(in1 *v3.PodSecurityPolicyTemplate) (*v3.PodSecurityPolicyTemplate, error) {
// 	               panic("mock out the Update method")
//             },
//             WatchFunc: func(opts metav1.ListOptions) (watch.Interface, error) {
// 	               panic("mock out the Watch method")
//             },
//         }
//
//         // use mockedPodSecurityPolicyTemplateInterface in code that requires v31.PodSecurityPolicyTemplateInterface
//         // and then make assertions.
//
//     }
type PodSecurityPolicyTemplateInterfaceMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, syncMoqParam v31.PodSecurityPolicyTemplateHandlerFunc)

	// AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method.
	AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v31.PodSecurityPolicyTemplateLifecycle)

	// AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method.
	AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, syncMoqParam v31.PodSecurityPolicyTemplateHandlerFunc)

	// AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method.
	AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v31.PodSecurityPolicyTemplateLifecycle)

	// AddFeatureHandlerFunc mocks the AddFeatureHandler method.
	AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, syncMoqParam v31.PodSecurityPolicyTemplateHandlerFunc)

	// AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method.
	AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v31.PodSecurityPolicyTemplateLifecycle)

	// AddHandlerFunc mocks the AddHandler method.
	AddHandlerFunc func(ctx context.Context, name string, syncMoqParam v31.PodSecurityPolicyTemplateHandlerFunc)

	// AddLifecycleFunc mocks the AddLifecycle method.
	AddLifecycleFunc func(ctx context.Context, name string, lifecycle v31.PodSecurityPolicyTemplateLifecycle)

	// ControllerFunc mocks the Controller method.
	ControllerFunc func() v31.PodSecurityPolicyTemplateController

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v3.PodSecurityPolicyTemplate) (*v3.PodSecurityPolicyTemplate, error)

	// DeleteFunc mocks the Delete method.
	DeleteFunc func(name string, options *metav1.DeleteOptions) error

	// DeleteCollectionFunc mocks the DeleteCollection method.
	DeleteCollectionFunc func(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error

	// DeleteNamespacedFunc mocks the DeleteNamespaced method.
	DeleteNamespacedFunc func(namespace string, name string, options *metav1.DeleteOptions) error

	// GetFunc mocks the Get method.
	GetFunc func(name string, opts metav1.GetOptions) (*v3.PodSecurityPolicyTemplate, error)

	// GetNamespacedFunc mocks the GetNamespaced method.
	GetNamespacedFunc func(namespace string, name string, opts metav1.GetOptions) (*v3.PodSecurityPolicyTemplate, error)

	// ListFunc mocks the List method.
	ListFunc func(opts metav1.ListOptions) (*v3.PodSecurityPolicyTemplateList, error)

	// ListNamespacedFunc mocks the ListNamespaced method.
	ListNamespacedFunc func(namespace string, opts metav1.ListOptions) (*v3.PodSecurityPolicyTemplateList, error)

	// ObjectClientFunc mocks the ObjectClient method.
	ObjectClientFunc func() *objectclient.ObjectClient

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v3.PodSecurityPolicyTemplate) (*v3.PodSecurityPolicyTemplate, error)

	// WatchFunc mocks the Watch method.
	WatchFunc func(opts metav1.ListOptions) (watch.Interface, error)

	// calls tracks calls to the methods.
	calls struct {
		// AddClusterScopedFeatureHandler holds details about calls to the AddClusterScopedFeatureHandler method.
		AddClusterScopedFeatureHandler []struct {
			// Ctx is the ctx argument value.
			Ctx context.Context
			// Enabled is the enabled argument value.
			Enabled func() bool
			// Name is the name argument value.
			Name string
			// ClusterName is the clusterName argument value.
			ClusterName string
			// Sync is the sync argument value.
			Sync v31.PodSecurityPolicyTemplateHandlerFunc
		}
		// AddClusterScopedFeatureLifecycle holds details about calls to the AddClusterScopedFeatureLifecycle method.
		AddClusterScopedFeatureLifecycle []struct {
			// Ctx is the ctx argument value.
			Ctx context.Context
			// Enabled is the enabled argument value.
			Enabled func() bool
			// Name is the name argument value.
			Name string
			// ClusterName is the clusterName argument value.
			ClusterName string
			// Lifecycle is the lifecycle argument value.
			Lifecycle v31.PodSecurityPolicyTemplateLifecycle
		}
		// AddClusterScopedHandler holds details about calls to the AddClusterScopedHandler method.
		AddClusterScopedHandler []struct {
			// Ctx is the ctx argument value.
			Ctx context.Context
			// Name is the name argument value.
			Name string
			// ClusterName is the clusterName argument value.
			ClusterName string
			// Sync is the sync argument value.
			Sync v31.PodSecurityPolicyTemplateHandlerFunc
		}
		// AddClusterScopedLifecycle holds details about calls to the AddClusterScopedLifecycle method.
		AddClusterScopedLifecycle []struct {
			// Ctx is the ctx argument value.
			Ctx context.Context
			// Name is the name argument value.
			Name string
			// ClusterName is the clusterName argument value.
			ClusterName string
			// Lifecycle is the lifecycle argument value.
			Lifecycle v31.PodSecurityPolicyTemplateLifecycle
		}
		// AddFeatureHandler holds details about calls to the AddFeatureHandler method.
		AddFeatureHandler []struct {
			// Ctx is the ctx argument value.
			Ctx context.Context
			// Enabled is the enabled argument value.
			Enabled func() bool
			// Name is the name argument value.
			Name string
			// Sync is the sync argument value.
			Sync v31.PodSecurityPolicyTemplateHandlerFunc
		}
		// AddFeatureLifecycle holds details about calls to the AddFeatureLifecycle method.
		AddFeatureLifecycle []struct {
			// Ctx is the ctx argument value.
			Ctx context.Context
			// Enabled is the enabled argument value.
			Enabled func() bool
			// Name is the name argument value.
			Name string
			// Lifecycle is the lifecycle argument value.
			Lifecycle v31.PodSecurityPolicyTemplateLifecycle
		}
		// AddHandler holds details about calls to the AddHandler method.
		AddHandler []struct {
			// Ctx is the ctx argument value.
			Ctx context.Context
			// Name is the name argument value.
			Name string
			// Sync is the sync argument value.
			Sync v31.PodSecurityPolicyTemplateHandlerFunc
		}
		// AddLifecycle holds details about calls to the AddLifecycle method.
		AddLifecycle []struct {
			// Ctx is the ctx argument value.
			Ctx context.Context
			// Name is the name argument value.
			Name string
			// Lifecycle is the lifecycle argument value.
			Lifecycle v31.PodSecurityPolicyTemplateLifecycle
		}
		// Controller holds details about calls to the Controller method.
		Controller []struct {
		}
		// Create holds details about calls to the Create method.
		Create []struct {
			// In1 is the in1 argument value.
			In1 *v3.PodSecurityPolicyTemplate
		}
		// Delete holds details about calls to the Delete method.
		Delete []struct {
			// Name is the name argument value.
			Name string
			// Options is the options argument value.
			Options *metav1.DeleteOptions
		}
		// DeleteCollection holds details about calls to the DeleteCollection method.
		DeleteCollection []struct {
			// DeleteOpts is the deleteOpts argument value.
			DeleteOpts *metav1.DeleteOptions
			// ListOpts is the listOpts argument value.
			ListOpts metav1.ListOptions
		}
		// DeleteNamespaced holds details about calls to the DeleteNamespaced method.
		DeleteNamespaced []struct {
			// Namespace is the namespace argument value.
			Namespace string
			// Name is the name argument value.
			Name string
			// Options is the options argument value.
			Options *metav1.DeleteOptions
		}
		// Get holds details about calls to the Get method.
		Get []struct {
			// Name is the name argument value.
			Name string
			// Opts is the opts argument value.
			Opts metav1.GetOptions
		}
		// GetNamespaced holds details about calls to the GetNamespaced method.
		GetNamespaced []struct {
			// Namespace is the namespace argument value.
			Namespace string
			// Name is the name argument value.
			Name string
			// Opts is the opts argument value.
			Opts metav1.GetOptions
		}
		// List holds details about calls to the List method.
		List []struct {
			// Opts is the opts argument value.
			Opts metav1.ListOptions
		}
		// ListNamespaced holds details about calls to the ListNamespaced method.
		ListNamespaced []struct {
			// Namespace is the namespace argument value.
			Namespace string
			// Opts is the opts argument value.
			Opts metav1.ListOptions
		}
		// ObjectClient holds details about calls to the ObjectClient method.
		ObjectClient []struct {
		}
		// Update holds details about calls to the Update method.
		Update []struct {
			// In1 is the in1 argument value.
			In1 *v3.PodSecurityPolicyTemplate
		}
		// Watch holds details about calls to the Watch method.
		Watch []struct {
			// Opts is the opts argument value.
			Opts metav1.ListOptions
		}
	}
}

// AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (mock *PodSecurityPolicyTemplateInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, syncMoqParam v31.PodSecurityPolicyTemplateHandlerFunc) {
	if mock.AddClusterScopedFeatureHandlerFunc == nil {
		panic("PodSecurityPolicyTemplateInterfaceMock.AddClusterScopedFeatureHandlerFunc: method is nil but PodSecurityPolicyTemplateInterface.AddClusterScopedFeatureHandler was just called")
	}
	callInfo := struct {
		Ctx         context.Context
		Enabled     func() bool
		Name        string
		ClusterName string
		Sync        v31.PodSecurityPolicyTemplateHandlerFunc
	}{
		Ctx:         ctx,
		Enabled:     enabled,
		Name:        name,
		ClusterName: clusterName,
		Sync:        syncMoqParam,
	}
	lockPodSecurityPolicyTemplateInterfaceMockAddClusterScopedFeatureHandler.Lock()
	mock.calls.AddClusterScopedFeatureHandler = append(mock.calls.AddClusterScopedFeatureHandler, callInfo)
	lockPodSecurityPolicyTemplateInterfaceMockAddClusterScopedFeatureHandler.Unlock()
	mock.AddClusterScopedFeatureHandlerFunc(ctx, enabled, name, clusterName, syncMoqParam)
}

// AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateInterface.AddClusterScopedFeatureHandlerCalls())
func (mock *PodSecurityPolicyTemplateInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Sync        v31.PodSecurityPolicyTemplateHandlerFunc
} {
	var calls []struct {
		Ctx         context.Context
		Enabled     func() bool
		Name        string
		ClusterName string
		Sync        v31.PodSecurityPolicyTemplateHandlerFunc
	}
	lockPodSecurityPolicyTemplateInterfaceMockAddClusterScopedFeatureHandler.RLock()
	calls = mock.calls.AddClusterScopedFeatureHandler
	lockPodSecurityPolicyTemplateInterfaceMockAddClusterScopedFeatureHandler.RUnlock()
	return calls
}

// AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (mock *PodSecurityPolicyTemplateInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v31.PodSecurityPolicyTemplateLifecycle) {
	if mock.AddClusterScopedFeatureLifecycleFunc == nil {
		panic("PodSecurityPolicyTemplateInterfaceMock.AddClusterScopedFeatureLifecycleFunc: method is nil but PodSecurityPolicyTemplateInterface.AddClusterScopedFeatureLifecycle was just called")
	}
	callInfo := struct {
		Ctx         context.Context
		Enabled     func() bool
		Name        string
		ClusterName string
		Lifecycle   v31.PodSecurityPolicyTemplateLifecycle
	}{
		Ctx:         ctx,
		Enabled:     enabled,
		Name:        name,
		ClusterName: clusterName,
		Lifecycle:   lifecycle,
	}
	lockPodSecurityPolicyTemplateInterfaceMockAddClusterScopedFeatureLifecycle.Lock()
	mock.calls.AddClusterScopedFeatureLifecycle = append(mock.calls.AddClusterScopedFeatureLifecycle, callInfo)
	lockPodSecurityPolicyTemplateInterfaceMockAddClusterScopedFeatureLifecycle.Unlock()
	mock.AddClusterScopedFeatureLifecycleFunc(ctx, enabled, name, clusterName, lifecycle)
}

// AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateInterface.AddClusterScopedFeatureLifecycleCalls())
func (mock *PodSecurityPolicyTemplateInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Lifecycle   v31.PodSecurityPolicyTemplateLifecycle
} {
	var calls []struct {
		Ctx         context.Context
		Enabled     func() bool
		Name        string
		ClusterName string
		Lifecycle   v31.PodSecurityPolicyTemplateLifecycle
	}
	lockPodSecurityPolicyTemplateInterfaceMockAddClusterScopedFeatureLifecycle.RLock()
	calls = mock.calls.AddClusterScopedFeatureLifecycle
	lockPodSecurityPolicyTemplateInterfaceMockAddClusterScopedFeatureLifecycle.RUnlock()
	return calls
}

// AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (mock *PodSecurityPolicyTemplateInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, syncMoqParam v31.PodSecurityPolicyTemplateHandlerFunc) {
	if mock.AddClusterScopedHandlerFunc == nil {
		panic("PodSecurityPolicyTemplateInterfaceMock.AddClusterScopedHandlerFunc: method is nil but PodSecurityPolicyTemplateInterface.AddClusterScopedHandler was just called")
	}
	callInfo := struct {
		Ctx         context.Context
		Name        string
		ClusterName string
		Sync        v31.PodSecurityPolicyTemplateHandlerFunc
	}{
		Ctx:         ctx,
		Name:        name,
		ClusterName: clusterName,
		Sync:        syncMoqParam,
	}
	lockPodSecurityPolicyTemplateInterfaceMockAddClusterScopedHandler.Lock()
	mock.calls.AddClusterScopedHandler = append(mock.calls.AddClusterScopedHandler, callInfo)
	lockPodSecurityPolicyTemplateInterfaceMockAddClusterScopedHandler.Unlock()
	mock.AddClusterScopedHandlerFunc(ctx, name, clusterName, syncMoqParam)
}

// AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateInterface.AddClusterScopedHandlerCalls())
func (mock *PodSecurityPolicyTemplateInterfaceMock) AddClusterScopedHandlerCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Sync        v31.PodSecurityPolicyTemplateHandlerFunc
} {
	var calls []struct {
		Ctx         context.Context
		Name        string
		ClusterName string
		Sync        v31.PodSecurityPolicyTemplateHandlerFunc
	}
	lockPodSecurityPolicyTemplateInterfaceMockAddClusterScopedHandler.RLock()
	calls = mock.calls.AddClusterScopedHandler
	lockPodSecurityPolicyTemplateInterfaceMockAddClusterScopedHandler.RUnlock()
	return calls
}

// AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (mock *PodSecurityPolicyTemplateInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v31.PodSecurityPolicyTemplateLifecycle) {
	if mock.AddClusterScopedLifecycleFunc == nil {
		panic("PodSecurityPolicyTemplateInterfaceMock.AddClusterScopedLifecycleFunc: method is nil but PodSecurityPolicyTemplateInterface.AddClusterScopedLifecycle was just called")
	}
	callInfo := struct {
		Ctx         context.Context
		Name        string
		ClusterName string
		Lifecycle   v31.PodSecurityPolicyTemplateLifecycle
	}{
		Ctx:         ctx,
		Name:        name,
		ClusterName: clusterName,
		Lifecycle:   lifecycle,
	}
	lockPodSecurityPolicyTemplateInterfaceMockAddClusterScopedLifecycle.Lock()
	mock.calls.AddClusterScopedLifecycle = append(mock.calls.AddClusterScopedLifecycle, callInfo)
	lockPodSecurityPolicyTemplateInterfaceMockAddClusterScopedLifecycle.Unlock()
	mock.AddClusterScopedLifecycleFunc(ctx, name, clusterName, lifecycle)
}

// AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateInterface.AddClusterScopedLifecycleCalls())
func (mock *PodSecurityPolicyTemplateInterfaceMock) AddClusterScopedLifecycleCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Lifecycle   v31.PodSecurityPolicyTemplateLifecycle
} {
	var calls []struct {
		Ctx         context.Context
		Name        string
		ClusterName string
		Lifecycle   v31.PodSecurityPolicyTemplateLifecycle
	}
	lockPodSecurityPolicyTemplateInterfaceMockAddClusterScopedLifecycle.RLock()
	calls = mock.calls.AddClusterScopedLifecycle
	lockPodSecurityPolicyTemplateInterfaceMockAddClusterScopedLifecycle.RUnlock()
	return calls
}

// AddFeatureHandler calls AddFeatureHandlerFunc.
func (mock *PodSecurityPolicyTemplateInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, syncMoqParam v31.PodSecurityPolicyTemplateHandlerFunc) {
	if mock.AddFeatureHandlerFunc == nil {
		panic("PodSecurityPolicyTemplateInterfaceMock.AddFeatureHandlerFunc: method is nil but PodSecurityPolicyTemplateInterface.AddFeatureHandler was just called")
	}
	callInfo := struct {
		Ctx     context.Context
		Enabled func() bool
		Name    string
		Sync    v31.PodSecurityPolicyTemplateHandlerFunc
	}{
		Ctx:     ctx,
		Enabled: enabled,
		Name:    name,
		Sync:    syncMoqParam,
	}
	lockPodSecurityPolicyTemplateInterfaceMockAddFeatureHandler.Lock()
	mock.calls.AddFeatureHandler = append(mock.calls.AddFeatureHandler, callInfo)
	lockPodSecurityPolicyTemplateInterfaceMockAddFeatureHandler.Unlock()
	mock.AddFeatureHandlerFunc(ctx, enabled, name, syncMoqParam)
}

// AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateInterface.AddFeatureHandlerCalls())
func (mock *PodSecurityPolicyTemplateInterfaceMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v31.PodSecurityPolicyTemplateHandlerFunc
} {
	var calls []struct {
		Ctx     context.Context
		Enabled func() bool
		Name    string
		Sync    v31.PodSecurityPolicyTemplateHandlerFunc
	}
	lockPodSecurityPolicyTemplateInterfaceMockAddFeatureHandler.RLock()
	calls = mock.calls.AddFeatureHandler
	lockPodSecurityPolicyTemplateInterfaceMockAddFeatureHandler.RUnlock()
	return calls
}

// AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (mock *PodSecurityPolicyTemplateInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v31.PodSecurityPolicyTemplateLifecycle) {
	if mock.AddFeatureLifecycleFunc == nil {
		panic("PodSecurityPolicyTemplateInterfaceMock.AddFeatureLifecycleFunc: method is nil but PodSecurityPolicyTemplateInterface.AddFeatureLifecycle was just called")
	}
	callInfo := struct {
		Ctx       context.Context
		Enabled   func() bool
		Name      string
		Lifecycle v31.PodSecurityPolicyTemplateLifecycle
	}{
		Ctx:       ctx,
		Enabled:   enabled,
		Name:      name,
		Lifecycle: lifecycle,
	}
	lockPodSecurityPolicyTemplateInterfaceMockAddFeatureLifecycle.Lock()
	mock.calls.AddFeatureLifecycle = append(mock.calls.AddFeatureLifecycle, callInfo)
	lockPodSecurityPolicyTemplateInterfaceMockAddFeatureLifecycle.Unlock()
	mock.AddFeatureLifecycleFunc(ctx, enabled, name, lifecycle)
}

// AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateInterface.AddFeatureLifecycleCalls())
func (mock *PodSecurityPolicyTemplateInterfaceMock) AddFeatureLifecycleCalls() []struct {
	Ctx       context.Context
	Enabled   func() bool
	Name      string
	Lifecycle v31.PodSecurityPolicyTemplateLifecycle
} {
	var calls []struct {
		Ctx       context.Context
		Enabled   func() bool
		Name      string
		Lifecycle v31.PodSecurityPolicyTemplateLifecycle
	}
	lockPodSecurityPolicyTemplateInterfaceMockAddFeatureLifecycle.RLock()
	calls = mock.calls.AddFeatureLifecycle
	lockPodSecurityPolicyTemplateInterfaceMockAddFeatureLifecycle.RUnlock()
	return calls
}

// AddHandler calls AddHandlerFunc.
func (mock *PodSecurityPolicyTemplateInterfaceMock) AddHandler(ctx context.Context, name string, syncMoqParam v31.PodSecurityPolicyTemplateHandlerFunc) {
	if mock.AddHandlerFunc == nil {
		panic("PodSecurityPolicyTemplateInterfaceMock.AddHandlerFunc: method is nil but PodSecurityPolicyTemplateInterface.AddHandler was just called")
	}
	callInfo := struct {
		Ctx  context.Context
		Name string
		Sync v31.PodSecurityPolicyTemplateHandlerFunc
	}{
		Ctx:  ctx,
		Name: name,
		Sync: syncMoqParam,
	}
	lockPodSecurityPolicyTemplateInterfaceMockAddHandler.Lock()
	mock.calls.AddHandler = append(mock.calls.AddHandler, callInfo)
	lockPodSecurityPolicyTemplateInterfaceMockAddHandler.Unlock()
	mock.AddHandlerFunc(ctx, name, syncMoqParam)
}

// AddHandlerCalls gets all the calls that were made to AddHandler.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateInterface.AddHandlerCalls())
func (mock *PodSecurityPolicyTemplateInterfaceMock) AddHandlerCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v31.PodSecurityPolicyTemplateHandlerFunc
} {
	var calls []struct {
		Ctx  context.Context
		Name string
		Sync v31.PodSecurityPolicyTemplateHandlerFunc
	}
	lockPodSecurityPolicyTemplateInterfaceMockAddHandler.RLock()
	calls = mock.calls.AddHandler
	lockPodSecurityPolicyTemplateInterfaceMockAddHandler.RUnlock()
	return calls
}

// AddLifecycle calls AddLifecycleFunc.
func (mock *PodSecurityPolicyTemplateInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v31.PodSecurityPolicyTemplateLifecycle) {
	if mock.AddLifecycleFunc == nil {
		panic("PodSecurityPolicyTemplateInterfaceMock.AddLifecycleFunc: method is nil but PodSecurityPolicyTemplateInterface.AddLifecycle was just called")
	}
	callInfo := struct {
		Ctx       context.Context
		Name      string
		Lifecycle v31.PodSecurityPolicyTemplateLifecycle
	}{
		Ctx:       ctx,
		Name:      name,
		Lifecycle: lifecycle,
	}
	lockPodSecurityPolicyTemplateInterfaceMockAddLifecycle.Lock()
	mock.calls.AddLifecycle = append(mock.calls.AddLifecycle, callInfo)
	lockPodSecurityPolicyTemplateInterfaceMockAddLifecycle.Unlock()
	mock.AddLifecycleFunc(ctx, name, lifecycle)
}

// AddLifecycleCalls gets all the calls that were made to AddLifecycle.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateInterface.AddLifecycleCalls())
func (mock *PodSecurityPolicyTemplateInterfaceMock) AddLifecycleCalls() []struct {
	Ctx       context.Context
	Name      string
	Lifecycle v31.PodSecurityPolicyTemplateLifecycle
} {
	var calls []struct {
		Ctx       context.Context
		Name      string
		Lifecycle v31.PodSecurityPolicyTemplateLifecycle
	}
	lockPodSecurityPolicyTemplateInterfaceMockAddLifecycle.RLock()
	calls = mock.calls.AddLifecycle
	lockPodSecurityPolicyTemplateInterfaceMockAddLifecycle.RUnlock()
	return calls
}

// Controller calls ControllerFunc.
func (mock *PodSecurityPolicyTemplateInterfaceMock) Controller() v31.PodSecurityPolicyTemplateController {
	if mock.ControllerFunc == nil {
		panic("PodSecurityPolicyTemplateInterfaceMock.ControllerFunc: method is nil but PodSecurityPolicyTemplateInterface.Controller was just called")
	}
	callInfo := struct {
	}{}
	lockPodSecurityPolicyTemplateInterfaceMockController.Lock()
	mock.calls.Controller = append(mock.calls.Controller, callInfo)
	lockPodSecurityPolicyTemplateInterfaceMockController.Unlock()
	return mock.ControllerFunc()
}

// ControllerCalls gets all the calls that were made to Controller.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateInterface.ControllerCalls())
func (mock *PodSecurityPolicyTemplateInterfaceMock) ControllerCalls() []struct {
} {
	var calls []struct {
	}
	lockPodSecurityPolicyTemplateInterfaceMockController.RLock()
	calls = mock.calls.Controller
	lockPodSecurityPolicyTemplateInterfaceMockController.RUnlock()
	return calls
}

// Create calls CreateFunc.
func (mock *PodSecurityPolicyTemplateInterfaceMock) Create(in1 *v3.PodSecurityPolicyTemplate) (*v3.PodSecurityPolicyTemplate, error) {
	if mock.CreateFunc == nil {
		panic("PodSecurityPolicyTemplateInterfaceMock.CreateFunc: method is nil but PodSecurityPolicyTemplateInterface.Create was just called")
	}
	callInfo := struct {
		In1 *v3.PodSecurityPolicyTemplate
	}{
		In1: in1,
	}
	lockPodSecurityPolicyTemplateInterfaceMockCreate.Lock()
	mock.calls.Create = append(mock.calls.Create, callInfo)
	lockPodSecurityPolicyTemplateInterfaceMockCreate.Unlock()
	return mock.CreateFunc(in1)
}

// CreateCalls gets all the calls that were made to Create.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateInterface.CreateCalls())
func (mock *PodSecurityPolicyTemplateInterfaceMock) CreateCalls() []struct {
	In1 *v3.PodSecurityPolicyTemplate
} {
	var calls []struct {
		In1 *v3.PodSecurityPolicyTemplate
	}
	lockPodSecurityPolicyTemplateInterfaceMockCreate.RLock()
	calls = mock.calls.Create
	lockPodSecurityPolicyTemplateInterfaceMockCreate.RUnlock()
	return calls
}

// Delete calls DeleteFunc.
func (mock *PodSecurityPolicyTemplateInterfaceMock) Delete(name string, options *metav1.DeleteOptions) error {
	if mock.DeleteFunc == nil {
		panic("PodSecurityPolicyTemplateInterfaceMock.DeleteFunc: method is nil but PodSecurityPolicyTemplateInterface.Delete was just called")
	}
	callInfo := struct {
		Name    string
		Options *metav1.DeleteOptions
	}{
		Name:    name,
		Options: options,
	}
	lockPodSecurityPolicyTemplateInterfaceMockDelete.Lock()
	mock.calls.Delete = append(mock.calls.Delete, callInfo)
	lockPodSecurityPolicyTemplateInterfaceMockDelete.Unlock()
	return mock.DeleteFunc(name, options)
}

// DeleteCalls gets all the calls that were made to Delete.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateInterface.DeleteCalls())
func (mock *PodSecurityPolicyTemplateInterfaceMock) DeleteCalls() []struct {
	Name    string
	Options *metav1.DeleteOptions
} {
	var calls []struct {
		Name    string
		Options *metav1.DeleteOptions
	}
	lockPodSecurityPolicyTemplateInterfaceMockDelete.RLock()
	calls = mock.calls.Delete
	lockPodSecurityPolicyTemplateInterfaceMockDelete.RUnlock()
	return calls
}

// DeleteCollection calls DeleteCollectionFunc.
func (mock *PodSecurityPolicyTemplateInterfaceMock) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error {
	if mock.DeleteCollectionFunc == nil {
		panic("PodSecurityPolicyTemplateInterfaceMock.DeleteCollectionFunc: method is nil but PodSecurityPolicyTemplateInterface.DeleteCollection was just called")
	}
	callInfo := struct {
		DeleteOpts *metav1.DeleteOptions
		ListOpts   metav1.ListOptions
	}{
		DeleteOpts: deleteOpts,
		ListOpts:   listOpts,
	}
	lockPodSecurityPolicyTemplateInterfaceMockDeleteCollection.Lock()
	mock.calls.DeleteCollection = append(mock.calls.DeleteCollection, callInfo)
	lockPodSecurityPolicyTemplateInterfaceMockDeleteCollection.Unlock()
	return mock.DeleteCollectionFunc(deleteOpts, listOpts)
}

// DeleteCollectionCalls gets all the calls that were made to DeleteCollection.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateInterface.DeleteCollectionCalls())
func (mock *PodSecurityPolicyTemplateInterfaceMock) DeleteCollectionCalls() []struct {
	DeleteOpts *metav1.DeleteOptions
	ListOpts   metav1.ListOptions
} {
	var calls []struct {
		DeleteOpts *metav1.DeleteOptions
		ListOpts   metav1.ListOptions
	}
	lockPodSecurityPolicyTemplateInterfaceMockDeleteCollection.RLock()
	calls = mock.calls.DeleteCollection
	lockPodSecurityPolicyTemplateInterfaceMockDeleteCollection.RUnlock()
	return calls
}

// DeleteNamespaced calls DeleteNamespacedFunc.
func (mock *PodSecurityPolicyTemplateInterfaceMock) DeleteNamespaced(namespace string, name string, options *metav1.DeleteOptions) error {
	if mock.DeleteNamespacedFunc == nil {
		panic("PodSecurityPolicyTemplateInterfaceMock.DeleteNamespacedFunc: method is nil but PodSecurityPolicyTemplateInterface.DeleteNamespaced was just called")
	}
	callInfo := struct {
		Namespace string
		Name      string
		Options   *metav1.DeleteOptions
	}{
		Namespace: namespace,
		Name:      name,
		Options:   options,
	}
	lockPodSecurityPolicyTemplateInterfaceMockDeleteNamespaced.Lock()
	mock.calls.DeleteNamespaced = append(mock.calls.DeleteNamespaced, callInfo)
	lockPodSecurityPolicyTemplateInterfaceMockDeleteNamespaced.Unlock()
	return mock.DeleteNamespacedFunc(namespace, name, options)
}

// DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateInterface.DeleteNamespacedCalls())
func (mock *PodSecurityPolicyTemplateInterfaceMock) DeleteNamespacedCalls() []struct {
	Namespace string
	Name      string
	Options   *metav1.DeleteOptions
} {
	var calls []struct {
		Namespace string
		Name      string
		Options   *metav1.DeleteOptions
	}
	lockPodSecurityPolicyTemplateInterfaceMockDeleteNamespaced.RLock()
	calls = mock.calls.DeleteNamespaced
	lockPodSecurityPolicyTemplateInterfaceMockDeleteNamespaced.RUnlock()
	return calls
}

// Get calls GetFunc.
func (mock *PodSecurityPolicyTemplateInterfaceMock) Get(name string, opts metav1.GetOptions) (*v3.PodSecurityPolicyTemplate, error) {
	if mock.GetFunc == nil {
		panic("PodSecurityPolicyTemplateInterfaceMock.GetFunc: method is nil but PodSecurityPolicyTemplateInterface.Get was just called")
	}
	callInfo := struct {
		Name string
		Opts metav1.GetOptions
	}{
		Name: name,
		Opts: opts,
	}
	lockPodSecurityPolicyTemplateInterfaceMockGet.Lock()
	mock.calls.Get = append(mock.calls.Get, callInfo)
	lockPodSecurityPolicyTemplateInterfaceMockGet.Unlock()
	return mock.GetFunc(name, opts)
}

// GetCalls gets all the calls that were made to Get.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateInterface.GetCalls())
func (mock *PodSecurityPolicyTemplateInterfaceMock) GetCalls() []struct {
	Name string
	Opts metav1.GetOptions
} {
	var calls []struct {
		Name string
		Opts metav1.GetOptions
	}
	lockPodSecurityPolicyTemplateInterfaceMockGet.RLock()
	calls = mock.calls.Get
	lockPodSecurityPolicyTemplateInterfaceMockGet.RUnlock()
	return calls
}

// GetNamespaced calls GetNamespacedFunc.
func (mock *PodSecurityPolicyTemplateInterfaceMock) GetNamespaced(namespace string, name string, opts metav1.GetOptions) (*v3.PodSecurityPolicyTemplate, error) {
	if mock.GetNamespacedFunc == nil {
		panic("PodSecurityPolicyTemplateInterfaceMock.GetNamespacedFunc: method is nil but PodSecurityPolicyTemplateInterface.GetNamespaced was just called")
	}
	callInfo := struct {
		Namespace string
		Name      string
		Opts      metav1.GetOptions
	}{
		Namespace: namespace,
		Name:      name,
		Opts:      opts,
	}
	lockPodSecurityPolicyTemplateInterfaceMockGetNamespaced.Lock()
	mock.calls.GetNamespaced = append(mock.calls.GetNamespaced, callInfo)
	lockPodSecurityPolicyTemplateInterfaceMockGetNamespaced.Unlock()
	return mock.GetNamespacedFunc(namespace, name, opts)
}

// GetNamespacedCalls gets all the calls that were made to GetNamespaced.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateInterface.GetNamespacedCalls())
func (mock *PodSecurityPolicyTemplateInterfaceMock) GetNamespacedCalls() []struct {
	Namespace string
	Name      string
	Opts      metav1.GetOptions
} {
	var calls []struct {
		Namespace string
		Name      string
		Opts      metav1.GetOptions
	}
	lockPodSecurityPolicyTemplateInterfaceMockGetNamespaced.RLock()
	calls = mock.calls.GetNamespaced
	lockPodSecurityPolicyTemplateInterfaceMockGetNamespaced.RUnlock()
	return calls
}

// List calls ListFunc.
func (mock *PodSecurityPolicyTemplateInterfaceMock) List(opts metav1.ListOptions) (*v3.PodSecurityPolicyTemplateList, error) {
	if mock.ListFunc == nil {
		panic("PodSecurityPolicyTemplateInterfaceMock.ListFunc: method is nil but PodSecurityPolicyTemplateInterface.List was just called")
	}
	callInfo := struct {
		Opts metav1.ListOptions
	}{
		Opts: opts,
	}
	lockPodSecurityPolicyTemplateInterfaceMockList.Lock()
	mock.calls.List = append(mock.calls.List, callInfo)
	lockPodSecurityPolicyTemplateInterfaceMockList.Unlock()
	return mock.ListFunc(opts)
}

// ListCalls gets all the calls that were made to List.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateInterface.ListCalls())
func (mock *PodSecurityPolicyTemplateInterfaceMock) ListCalls() []struct {
	Opts metav1.ListOptions
} {
	var calls []struct {
		Opts metav1.ListOptions
	}
	lockPodSecurityPolicyTemplateInterfaceMockList.RLock()
	calls = mock.calls.List
	lockPodSecurityPolicyTemplateInterfaceMockList.RUnlock()
	return calls
}

// ListNamespaced calls ListNamespacedFunc.
func (mock *PodSecurityPolicyTemplateInterfaceMock) ListNamespaced(namespace string, opts metav1.ListOptions) (*v3.PodSecurityPolicyTemplateList, error) {
	if mock.ListNamespacedFunc == nil {
		panic("PodSecurityPolicyTemplateInterfaceMock.ListNamespacedFunc: method is nil but PodSecurityPolicyTemplateInterface.ListNamespaced was just called")
	}
	callInfo := struct {
		Namespace string
		Opts      metav1.ListOptions
	}{
		Namespace: namespace,
		Opts:      opts,
	}
	lockPodSecurityPolicyTemplateInterfaceMockListNamespaced.Lock()
	mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo)
	lockPodSecurityPolicyTemplateInterfaceMockListNamespaced.Unlock()
	return mock.ListNamespacedFunc(namespace, opts)
}

// ListNamespacedCalls gets all the calls that were made to ListNamespaced.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateInterface.ListNamespacedCalls())
func (mock *PodSecurityPolicyTemplateInterfaceMock) ListNamespacedCalls() []struct {
	Namespace string
	Opts      metav1.ListOptions
} {
	var calls []struct {
		Namespace string
		Opts      metav1.ListOptions
	}
	lockPodSecurityPolicyTemplateInterfaceMockListNamespaced.RLock()
	calls = mock.calls.ListNamespaced
	lockPodSecurityPolicyTemplateInterfaceMockListNamespaced.RUnlock()
	return calls
}

// ObjectClient calls ObjectClientFunc.
func (mock *PodSecurityPolicyTemplateInterfaceMock) ObjectClient() *objectclient.ObjectClient {
	if mock.ObjectClientFunc == nil {
		panic("PodSecurityPolicyTemplateInterfaceMock.ObjectClientFunc: method is nil but PodSecurityPolicyTemplateInterface.ObjectClient was just called")
	}
	callInfo := struct {
	}{}
	lockPodSecurityPolicyTemplateInterfaceMockObjectClient.Lock()
	mock.calls.ObjectClient = append(mock.calls.ObjectClient, callInfo)
	lockPodSecurityPolicyTemplateInterfaceMockObjectClient.Unlock()
	return mock.ObjectClientFunc()
}

// ObjectClientCalls gets all the calls that were made to ObjectClient.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateInterface.ObjectClientCalls())
func (mock *PodSecurityPolicyTemplateInterfaceMock) ObjectClientCalls() []struct {
} {
	var calls []struct {
	}
	lockPodSecurityPolicyTemplateInterfaceMockObjectClient.RLock()
	calls = mock.calls.ObjectClient
	lockPodSecurityPolicyTemplateInterfaceMockObjectClient.RUnlock()
	return calls
}

// Update calls UpdateFunc.
func (mock *PodSecurityPolicyTemplateInterfaceMock) Update(in1 *v3.PodSecurityPolicyTemplate) (*v3.PodSecurityPolicyTemplate, error) {
	if mock.UpdateFunc == nil {
		panic("PodSecurityPolicyTemplateInterfaceMock.UpdateFunc: method is nil but PodSecurityPolicyTemplateInterface.Update was just called")
	}
	callInfo := struct {
		In1 *v3.PodSecurityPolicyTemplate
	}{
		In1: in1,
	}
	lockPodSecurityPolicyTemplateInterfaceMockUpdate.Lock()
	mock.calls.Update = append(mock.calls.Update, callInfo)
	lockPodSecurityPolicyTemplateInterfaceMockUpdate.Unlock()
	return mock.UpdateFunc(in1)
}

// UpdateCalls gets all the calls that were made to Update.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateInterface.UpdateCalls())
func (mock *PodSecurityPolicyTemplateInterfaceMock) UpdateCalls() []struct {
	In1 *v3.PodSecurityPolicyTemplate
} {
	var calls []struct {
		In1 *v3.PodSecurityPolicyTemplate
	}
	lockPodSecurityPolicyTemplateInterfaceMockUpdate.RLock()
	calls = mock.calls.Update
	lockPodSecurityPolicyTemplateInterfaceMockUpdate.RUnlock()
	return calls
}

// Watch calls WatchFunc.
func (mock *PodSecurityPolicyTemplateInterfaceMock) Watch(opts metav1.ListOptions) (watch.Interface, error) {
	if mock.WatchFunc == nil {
		panic("PodSecurityPolicyTemplateInterfaceMock.WatchFunc: method is nil but PodSecurityPolicyTemplateInterface.Watch was just called")
	}
	callInfo := struct {
		Opts metav1.ListOptions
	}{
		Opts: opts,
	}
	lockPodSecurityPolicyTemplateInterfaceMockWatch.Lock()
	mock.calls.Watch = append(mock.calls.Watch, callInfo)
	lockPodSecurityPolicyTemplateInterfaceMockWatch.Unlock()
	return mock.WatchFunc(opts)
}

// WatchCalls gets all the calls that were made to Watch.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplateInterface.WatchCalls())
func (mock *PodSecurityPolicyTemplateInterfaceMock) WatchCalls() []struct {
	Opts metav1.ListOptions
} {
	var calls []struct {
		Opts metav1.ListOptions
	}
	lockPodSecurityPolicyTemplateInterfaceMockWatch.RLock()
	calls = mock.calls.Watch
	lockPodSecurityPolicyTemplateInterfaceMockWatch.RUnlock()
	return calls
}

var (
	lockPodSecurityPolicyTemplatesGetterMockPodSecurityPolicyTemplates sync.RWMutex
)

// Ensure, that PodSecurityPolicyTemplatesGetterMock does implement v31.PodSecurityPolicyTemplatesGetter.
// If this is not the case, regenerate this file with moq.
var _ v31.PodSecurityPolicyTemplatesGetter = &PodSecurityPolicyTemplatesGetterMock{}

// PodSecurityPolicyTemplatesGetterMock is a mock implementation of v31.PodSecurityPolicyTemplatesGetter.
//
//     func TestSomethingThatUsesPodSecurityPolicyTemplatesGetter(t *testing.T) {
//
//         // make and configure a mocked v31.PodSecurityPolicyTemplatesGetter
//         mockedPodSecurityPolicyTemplatesGetter := &PodSecurityPolicyTemplatesGetterMock{
//             PodSecurityPolicyTemplatesFunc: func(namespace string) v31.PodSecurityPolicyTemplateInterface {
// 	               panic("mock out the PodSecurityPolicyTemplates method")
//             },
//         }
//
//         // use mockedPodSecurityPolicyTemplatesGetter in code that requires v31.PodSecurityPolicyTemplatesGetter
//         // and then make assertions.
//
//     }
type PodSecurityPolicyTemplatesGetterMock struct {
	// PodSecurityPolicyTemplatesFunc mocks the PodSecurityPolicyTemplates method.
	PodSecurityPolicyTemplatesFunc func(namespace string) v31.PodSecurityPolicyTemplateInterface

	// calls tracks calls to the methods.
	calls struct {
		// PodSecurityPolicyTemplates holds details about calls to the PodSecurityPolicyTemplates method.
		PodSecurityPolicyTemplates []struct {
			// Namespace is the namespace argument value.
			Namespace string
		}
	}
}

// PodSecurityPolicyTemplates calls PodSecurityPolicyTemplatesFunc.
func (mock *PodSecurityPolicyTemplatesGetterMock) PodSecurityPolicyTemplates(namespace string) v31.PodSecurityPolicyTemplateInterface {
	if mock.PodSecurityPolicyTemplatesFunc == nil {
		panic("PodSecurityPolicyTemplatesGetterMock.PodSecurityPolicyTemplatesFunc: method is nil but PodSecurityPolicyTemplatesGetter.PodSecurityPolicyTemplates was just called")
	}
	callInfo := struct {
		Namespace string
	}{
		Namespace: namespace,
	}
	lockPodSecurityPolicyTemplatesGetterMockPodSecurityPolicyTemplates.Lock()
	mock.calls.PodSecurityPolicyTemplates = append(mock.calls.PodSecurityPolicyTemplates, callInfo)
	lockPodSecurityPolicyTemplatesGetterMockPodSecurityPolicyTemplates.Unlock()
	return mock.PodSecurityPolicyTemplatesFunc(namespace)
}

// PodSecurityPolicyTemplatesCalls gets all the calls that were made to PodSecurityPolicyTemplates.
// Check the length with:
//     len(mockedPodSecurityPolicyTemplatesGetter.PodSecurityPolicyTemplatesCalls())
func (mock *PodSecurityPolicyTemplatesGetterMock) PodSecurityPolicyTemplatesCalls() []struct {
	Namespace string
} {
	var calls []struct {
		Namespace string
	}
	lockPodSecurityPolicyTemplatesGetterMockPodSecurityPolicyTemplates.RLock()
	calls = mock.calls.PodSecurityPolicyTemplates
	lockPodSecurityPolicyTemplatesGetterMockPodSecurityPolicyTemplates.RUnlock()
	return calls
}
