Documentation ¶
Index ¶
- type CronJobControllerMock
- func (mock *CronJobControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *CronJobControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *CronJobControllerMock) AddHandler(ctx context.Context, name string, handler v1beta1a.CronJobHandlerFunc)
- func (mock *CronJobControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *CronJobControllerMock) Enqueue(namespace string, name string)
- func (mock *CronJobControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *CronJobControllerMock) Generic() controller.GenericController
- func (mock *CronJobControllerMock) GenericCalls() []struct{}
- func (mock *CronJobControllerMock) Informer() cache.SharedIndexInformer
- func (mock *CronJobControllerMock) InformerCalls() []struct{}
- func (mock *CronJobControllerMock) Lister() v1beta1a.CronJobLister
- func (mock *CronJobControllerMock) ListerCalls() []struct{}
- func (mock *CronJobControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *CronJobControllerMock) StartCalls() []struct{ ... }
- func (mock *CronJobControllerMock) Sync(ctx context.Context) error
- func (mock *CronJobControllerMock) SyncCalls() []struct{ ... }
- type CronJobInterfaceMock
- func (mock *CronJobInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *CronJobInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *CronJobInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *CronJobInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *CronJobInterfaceMock) AddHandler(ctx context.Context, name string, sync v1beta1a.CronJobHandlerFunc)
- func (mock *CronJobInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *CronJobInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1beta1a.CronJobLifecycle)
- func (mock *CronJobInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *CronJobInterfaceMock) Controller() v1beta1a.CronJobController
- func (mock *CronJobInterfaceMock) ControllerCalls() []struct{}
- func (mock *CronJobInterfaceMock) Create(in1 *v1beta1.CronJob) (*v1beta1.CronJob, error)
- func (mock *CronJobInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *CronJobInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *CronJobInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *CronJobInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *CronJobInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *CronJobInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *CronJobInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *CronJobInterfaceMock) Get(name string, opts v1.GetOptions) (*v1beta1.CronJob, error)
- func (mock *CronJobInterfaceMock) GetCalls() []struct{ ... }
- func (mock *CronJobInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v1beta1.CronJob, error)
- func (mock *CronJobInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *CronJobInterfaceMock) List(opts v1.ListOptions) (*v1beta1a.CronJobList, error)
- func (mock *CronJobInterfaceMock) ListCalls() []struct{ ... }
- func (mock *CronJobInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *CronJobInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *CronJobInterfaceMock) Update(in1 *v1beta1.CronJob) (*v1beta1.CronJob, error)
- func (mock *CronJobInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *CronJobInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *CronJobInterfaceMock) WatchCalls() []struct{ ... }
- type CronJobListerMock
- func (mock *CronJobListerMock) Get(namespace string, name string) (*v1beta1.CronJob, error)
- func (mock *CronJobListerMock) GetCalls() []struct{ ... }
- func (mock *CronJobListerMock) List(namespace string, selector labels.Selector) ([]*v1beta1.CronJob, error)
- func (mock *CronJobListerMock) ListCalls() []struct{ ... }
- type CronJobsGetterMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronJobControllerMock ¶
type CronJobControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1beta1a.CronJobHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1beta1a.CronJobHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // 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() v1beta1a.CronJobLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
CronJobControllerMock is a mock implementation of CronJobController.
func TestSomethingThatUsesCronJobController(t *testing.T) { // make and configure a mocked CronJobController mockedCronJobController := &CronJobControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1beta1a.CronJobHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1beta1a.CronJobHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v1beta1a.CronJobLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedCronJobController in code that requires CronJobController // and then make assertions. }
func (*CronJobControllerMock) AddClusterScopedHandler ¶
func (mock *CronJobControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1beta1a.CronJobHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*CronJobControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *CronJobControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1beta1a.CronJobHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedCronJobController.AddClusterScopedHandlerCalls())
func (*CronJobControllerMock) AddHandler ¶
func (mock *CronJobControllerMock) AddHandler(ctx context.Context, name string, handler v1beta1a.CronJobHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*CronJobControllerMock) AddHandlerCalls ¶
func (mock *CronJobControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1beta1a.CronJobHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedCronJobController.AddHandlerCalls())
func (*CronJobControllerMock) Enqueue ¶
func (mock *CronJobControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*CronJobControllerMock) EnqueueCalls ¶
func (mock *CronJobControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedCronJobController.EnqueueCalls())
func (*CronJobControllerMock) Generic ¶
func (mock *CronJobControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*CronJobControllerMock) GenericCalls ¶
func (mock *CronJobControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedCronJobController.GenericCalls())
func (*CronJobControllerMock) Informer ¶
func (mock *CronJobControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*CronJobControllerMock) InformerCalls ¶
func (mock *CronJobControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedCronJobController.InformerCalls())
func (*CronJobControllerMock) Lister ¶
func (mock *CronJobControllerMock) Lister() v1beta1a.CronJobLister
Lister calls ListerFunc.
func (*CronJobControllerMock) ListerCalls ¶
func (mock *CronJobControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedCronJobController.ListerCalls())
func (*CronJobControllerMock) Start ¶
func (mock *CronJobControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*CronJobControllerMock) StartCalls ¶
func (mock *CronJobControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedCronJobController.StartCalls())
func (*CronJobControllerMock) Sync ¶
func (mock *CronJobControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*CronJobControllerMock) SyncCalls ¶
func (mock *CronJobControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedCronJobController.SyncCalls())
type CronJobInterfaceMock ¶
type CronJobInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1beta1a.CronJobHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1beta1a.CronJobLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1beta1a.CronJobHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1beta1a.CronJobLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1beta1a.CronJobController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1beta1.CronJob) (*v1beta1.CronJob, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v1beta1.CronJob, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v1beta1.CronJob, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v1beta1a.CronJobList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1beta1.CronJob) (*v1beta1.CronJob, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
CronJobInterfaceMock is a mock implementation of CronJobInterface.
func TestSomethingThatUsesCronJobInterface(t *testing.T) { // make and configure a mocked CronJobInterface mockedCronJobInterface := &CronJobInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1beta1a.CronJobHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1beta1a.CronJobLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1beta1a.CronJobHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1beta1a.CronJobLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1beta1a.CronJobController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1beta1.CronJob) (*v1beta1.CronJob, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v1beta1.CronJob, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v1beta1.CronJob, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v1beta1a.CronJobList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1beta1.CronJob) (*v1beta1.CronJob, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedCronJobInterface in code that requires CronJobInterface // and then make assertions. }
func (*CronJobInterfaceMock) AddClusterScopedHandler ¶
func (mock *CronJobInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1beta1a.CronJobHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*CronJobInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *CronJobInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1beta1a.CronJobHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedCronJobInterface.AddClusterScopedHandlerCalls())
func (*CronJobInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *CronJobInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1beta1a.CronJobLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*CronJobInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *CronJobInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1beta1a.CronJobLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedCronJobInterface.AddClusterScopedLifecycleCalls())
func (*CronJobInterfaceMock) AddHandler ¶
func (mock *CronJobInterfaceMock) AddHandler(ctx context.Context, name string, sync v1beta1a.CronJobHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*CronJobInterfaceMock) AddHandlerCalls ¶
func (mock *CronJobInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1beta1a.CronJobHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedCronJobInterface.AddHandlerCalls())
func (*CronJobInterfaceMock) AddLifecycle ¶
func (mock *CronJobInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1beta1a.CronJobLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*CronJobInterfaceMock) AddLifecycleCalls ¶
func (mock *CronJobInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1beta1a.CronJobLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedCronJobInterface.AddLifecycleCalls())
func (*CronJobInterfaceMock) Controller ¶
func (mock *CronJobInterfaceMock) Controller() v1beta1a.CronJobController
Controller calls ControllerFunc.
func (*CronJobInterfaceMock) ControllerCalls ¶
func (mock *CronJobInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedCronJobInterface.ControllerCalls())
func (*CronJobInterfaceMock) CreateCalls ¶
func (mock *CronJobInterfaceMock) CreateCalls() []struct { In1 *v1beta1.CronJob }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedCronJobInterface.CreateCalls())
func (*CronJobInterfaceMock) Delete ¶
func (mock *CronJobInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*CronJobInterfaceMock) DeleteCalls ¶
func (mock *CronJobInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedCronJobInterface.DeleteCalls())
func (*CronJobInterfaceMock) DeleteCollection ¶
func (mock *CronJobInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*CronJobInterfaceMock) DeleteCollectionCalls ¶
func (mock *CronJobInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedCronJobInterface.DeleteCollectionCalls())
func (*CronJobInterfaceMock) DeleteNamespaced ¶
func (mock *CronJobInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*CronJobInterfaceMock) DeleteNamespacedCalls ¶
func (mock *CronJobInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedCronJobInterface.DeleteNamespacedCalls())
func (*CronJobInterfaceMock) Get ¶
func (mock *CronJobInterfaceMock) Get(name string, opts v1.GetOptions) (*v1beta1.CronJob, error)
Get calls GetFunc.
func (*CronJobInterfaceMock) GetCalls ¶
func (mock *CronJobInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedCronJobInterface.GetCalls())
func (*CronJobInterfaceMock) GetNamespaced ¶
func (mock *CronJobInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v1beta1.CronJob, error)
GetNamespaced calls GetNamespacedFunc.
func (*CronJobInterfaceMock) GetNamespacedCalls ¶
func (mock *CronJobInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedCronJobInterface.GetNamespacedCalls())
func (*CronJobInterfaceMock) List ¶
func (mock *CronJobInterfaceMock) List(opts v1.ListOptions) (*v1beta1a.CronJobList, error)
List calls ListFunc.
func (*CronJobInterfaceMock) ListCalls ¶
func (mock *CronJobInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedCronJobInterface.ListCalls())
func (*CronJobInterfaceMock) ObjectClient ¶
func (mock *CronJobInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*CronJobInterfaceMock) ObjectClientCalls ¶
func (mock *CronJobInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedCronJobInterface.ObjectClientCalls())
func (*CronJobInterfaceMock) UpdateCalls ¶
func (mock *CronJobInterfaceMock) UpdateCalls() []struct { In1 *v1beta1.CronJob }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedCronJobInterface.UpdateCalls())
func (*CronJobInterfaceMock) Watch ¶
func (mock *CronJobInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*CronJobInterfaceMock) WatchCalls ¶
func (mock *CronJobInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedCronJobInterface.WatchCalls())
type CronJobListerMock ¶
type CronJobListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1beta1.CronJob, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1beta1.CronJob, error) // contains filtered or unexported fields }
CronJobListerMock is a mock implementation of CronJobLister.
func TestSomethingThatUsesCronJobLister(t *testing.T) { // make and configure a mocked CronJobLister mockedCronJobLister := &CronJobListerMock{ GetFunc: func(namespace string, name string) (*v1beta1.CronJob, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1beta1.CronJob, error) { panic("mock out the List method") }, } // use mockedCronJobLister in code that requires CronJobLister // and then make assertions. }
func (*CronJobListerMock) GetCalls ¶
func (mock *CronJobListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedCronJobLister.GetCalls())
type CronJobsGetterMock ¶
type CronJobsGetterMock struct { // CronJobsFunc mocks the CronJobs method. CronJobsFunc func(namespace string) v1beta1a.CronJobInterface // contains filtered or unexported fields }
CronJobsGetterMock is a mock implementation of CronJobsGetter.
func TestSomethingThatUsesCronJobsGetter(t *testing.T) { // make and configure a mocked CronJobsGetter mockedCronJobsGetter := &CronJobsGetterMock{ CronJobsFunc: func(namespace string) v1beta1a.CronJobInterface { panic("mock out the CronJobs method") }, } // use mockedCronJobsGetter in code that requires CronJobsGetter // and then make assertions. }
func (*CronJobsGetterMock) CronJobs ¶
func (mock *CronJobsGetterMock) CronJobs(namespace string) v1beta1a.CronJobInterface
CronJobs calls CronJobsFunc.
func (*CronJobsGetterMock) CronJobsCalls ¶
func (mock *CronJobsGetterMock) CronJobsCalls() []struct { Namespace string }
CronJobsCalls gets all the calls that were made to CronJobs. Check the length with:
len(mockedCronJobsGetter.CronJobsCalls())