Documentation
¶
Index ¶
- type NodeCacheMock
- func (mock *NodeCacheMock) AddIndexer(indexName string, indexer v1.NodeIndexer)
- func (mock *NodeCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *NodeCacheMock) Get(name string) (*v1a.Node, error)
- func (mock *NodeCacheMock) GetByIndex(indexName string, key string) ([]*v1a.Node, error)
- func (mock *NodeCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *NodeCacheMock) GetCalls() []struct{ ... }
- func (mock *NodeCacheMock) List(selector labels.Selector) ([]*v1a.Node, error)
- func (mock *NodeCacheMock) ListCalls() []struct{ ... }
- type NodeClientMock
- func (mock *NodeClientMock) Create(in1 *v1a.Node) (*v1a.Node, error)
- func (mock *NodeClientMock) CreateCalls() []struct{ ... }
- func (mock *NodeClientMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *NodeClientMock) DeleteCalls() []struct{ ... }
- func (mock *NodeClientMock) Get(name string, options v1b.GetOptions) (*v1a.Node, error)
- func (mock *NodeClientMock) GetCalls() []struct{ ... }
- func (mock *NodeClientMock) List(opts v1b.ListOptions) (*v1a.NodeList, error)
- func (mock *NodeClientMock) ListCalls() []struct{ ... }
- func (mock *NodeClientMock) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Node, error)
- func (mock *NodeClientMock) PatchCalls() []struct{ ... }
- func (mock *NodeClientMock) Update(in1 *v1a.Node) (*v1a.Node, error)
- func (mock *NodeClientMock) UpdateCalls() []struct{ ... }
- func (mock *NodeClientMock) UpdateStatus(in1 *v1a.Node) (*v1a.Node, error)
- func (mock *NodeClientMock) UpdateStatusCalls() []struct{ ... }
- func (mock *NodeClientMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *NodeClientMock) WatchCalls() []struct{ ... }
- type NodeControllerMock
- func (mock *NodeControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *NodeControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *NodeControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *NodeControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *NodeControllerMock) Cache() v1.NodeCache
- func (mock *NodeControllerMock) CacheCalls() []struct{}
- func (mock *NodeControllerMock) Create(in1 *v1a.Node) (*v1a.Node, error)
- func (mock *NodeControllerMock) CreateCalls() []struct{ ... }
- func (mock *NodeControllerMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *NodeControllerMock) DeleteCalls() []struct{ ... }
- func (mock *NodeControllerMock) Enqueue(name string)
- func (mock *NodeControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *NodeControllerMock) Get(name string, options v1b.GetOptions) (*v1a.Node, error)
- func (mock *NodeControllerMock) GetCalls() []struct{ ... }
- func (mock *NodeControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *NodeControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *NodeControllerMock) Informer() cache.SharedIndexInformer
- func (mock *NodeControllerMock) InformerCalls() []struct{}
- func (mock *NodeControllerMock) List(opts v1b.ListOptions) (*v1a.NodeList, error)
- func (mock *NodeControllerMock) ListCalls() []struct{ ... }
- func (mock *NodeControllerMock) OnChange(ctx context.Context, name string, sync v1.NodeHandler)
- func (mock *NodeControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *NodeControllerMock) OnRemove(ctx context.Context, name string, sync v1.NodeHandler)
- func (mock *NodeControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *NodeControllerMock) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Node, error)
- func (mock *NodeControllerMock) PatchCalls() []struct{ ... }
- func (mock *NodeControllerMock) Update(in1 *v1a.Node) (*v1a.Node, error)
- func (mock *NodeControllerMock) UpdateCalls() []struct{ ... }
- func (mock *NodeControllerMock) UpdateStatus(in1 *v1a.Node) (*v1a.Node, error)
- func (mock *NodeControllerMock) UpdateStatusCalls() []struct{ ... }
- func (mock *NodeControllerMock) Updater() generic.Updater
- func (mock *NodeControllerMock) UpdaterCalls() []struct{}
- func (mock *NodeControllerMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *NodeControllerMock) WatchCalls() []struct{ ... }
- type PodCacheMock
- func (mock *PodCacheMock) AddIndexer(indexName string, indexer v1.PodIndexer)
- func (mock *PodCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *PodCacheMock) Get(namespace string, name string) (*v1a.Pod, error)
- func (mock *PodCacheMock) GetByIndex(indexName string, key string) ([]*v1a.Pod, error)
- func (mock *PodCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *PodCacheMock) GetCalls() []struct{ ... }
- func (mock *PodCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.Pod, error)
- func (mock *PodCacheMock) ListCalls() []struct{ ... }
- type PodClientMock
- func (mock *PodClientMock) Create(in1 *v1a.Pod) (*v1a.Pod, error)
- func (mock *PodClientMock) CreateCalls() []struct{ ... }
- func (mock *PodClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *PodClientMock) DeleteCalls() []struct{ ... }
- func (mock *PodClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Pod, error)
- func (mock *PodClientMock) GetCalls() []struct{ ... }
- func (mock *PodClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.PodList, error)
- func (mock *PodClientMock) ListCalls() []struct{ ... }
- func (mock *PodClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.Pod, error)
- func (mock *PodClientMock) PatchCalls() []struct{ ... }
- func (mock *PodClientMock) Update(in1 *v1a.Pod) (*v1a.Pod, error)
- func (mock *PodClientMock) UpdateCalls() []struct{ ... }
- func (mock *PodClientMock) UpdateStatus(in1 *v1a.Pod) (*v1a.Pod, error)
- func (mock *PodClientMock) UpdateStatusCalls() []struct{ ... }
- func (mock *PodClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *PodClientMock) WatchCalls() []struct{ ... }
- type PodControllerMock
- func (mock *PodControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *PodControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *PodControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *PodControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *PodControllerMock) Cache() v1.PodCache
- func (mock *PodControllerMock) CacheCalls() []struct{}
- func (mock *PodControllerMock) Create(in1 *v1a.Pod) (*v1a.Pod, error)
- func (mock *PodControllerMock) CreateCalls() []struct{ ... }
- func (mock *PodControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *PodControllerMock) DeleteCalls() []struct{ ... }
- func (mock *PodControllerMock) Enqueue(namespace string, name string)
- func (mock *PodControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *PodControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Pod, error)
- func (mock *PodControllerMock) GetCalls() []struct{ ... }
- func (mock *PodControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *PodControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *PodControllerMock) Informer() cache.SharedIndexInformer
- func (mock *PodControllerMock) InformerCalls() []struct{}
- func (mock *PodControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.PodList, error)
- func (mock *PodControllerMock) ListCalls() []struct{ ... }
- func (mock *PodControllerMock) OnChange(ctx context.Context, name string, sync v1.PodHandler)
- func (mock *PodControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *PodControllerMock) OnRemove(ctx context.Context, name string, sync v1.PodHandler)
- func (mock *PodControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *PodControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.Pod, error)
- func (mock *PodControllerMock) PatchCalls() []struct{ ... }
- func (mock *PodControllerMock) Update(in1 *v1a.Pod) (*v1a.Pod, error)
- func (mock *PodControllerMock) UpdateCalls() []struct{ ... }
- func (mock *PodControllerMock) UpdateStatus(in1 *v1a.Pod) (*v1a.Pod, error)
- func (mock *PodControllerMock) UpdateStatusCalls() []struct{ ... }
- func (mock *PodControllerMock) Updater() generic.Updater
- func (mock *PodControllerMock) UpdaterCalls() []struct{}
- func (mock *PodControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *PodControllerMock) WatchCalls() []struct{ ... }
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeCacheMock ¶
type NodeCacheMock struct { // AddIndexerFunc mocks the AddIndexer method. AddIndexerFunc func(indexName string, indexer v1.NodeIndexer) // GetFunc mocks the Get method. GetFunc func(name string) (*v1a.Node, error) // GetByIndexFunc mocks the GetByIndex method. GetByIndexFunc func(indexName string, key string) ([]*v1a.Node, error) // ListFunc mocks the List method. ListFunc func(selector labels.Selector) ([]*v1a.Node, error) // contains filtered or unexported fields }
NodeCacheMock is a mock implementation of NodeCache.
func TestSomethingThatUsesNodeCache(t *testing.T) { // make and configure a mocked NodeCache mockedNodeCache := &NodeCacheMock{ AddIndexerFunc: func(indexName string, indexer v1.NodeIndexer) { panic("mock out the AddIndexer method") }, GetFunc: func(name string) (*v1a.Node, error) { panic("mock out the Get method") }, GetByIndexFunc: func(indexName string, key string) ([]*v1a.Node, error) { panic("mock out the GetByIndex method") }, ListFunc: func(selector labels.Selector) ([]*v1a.Node, error) { panic("mock out the List method") }, } // use mockedNodeCache in code that requires NodeCache // and then make assertions. }
func (*NodeCacheMock) AddIndexer ¶
func (mock *NodeCacheMock) AddIndexer(indexName string, indexer v1.NodeIndexer)
AddIndexer calls AddIndexerFunc.
func (*NodeCacheMock) AddIndexerCalls ¶
func (mock *NodeCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1.NodeIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedNodeCache.AddIndexerCalls())
func (*NodeCacheMock) Get ¶
func (mock *NodeCacheMock) Get(name string) (*v1a.Node, error)
Get calls GetFunc.
func (*NodeCacheMock) GetByIndex ¶
GetByIndex calls GetByIndexFunc.
func (*NodeCacheMock) GetByIndexCalls ¶
func (mock *NodeCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedNodeCache.GetByIndexCalls())
func (*NodeCacheMock) GetCalls ¶
func (mock *NodeCacheMock) GetCalls() []struct { Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedNodeCache.GetCalls())
func (*NodeCacheMock) ListCalls ¶
func (mock *NodeCacheMock) ListCalls() []struct { Selector labels.Selector }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedNodeCache.ListCalls())
type NodeClientMock ¶
type NodeClientMock struct { // CreateFunc mocks the Create method. CreateFunc func(in1 *v1a.Node) (*v1a.Node, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, options v1b.GetOptions) (*v1a.Node, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.NodeList, error) // PatchFunc mocks the Patch method. PatchFunc func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Node, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1a.Node) (*v1a.Node, error) // UpdateStatusFunc mocks the UpdateStatus method. UpdateStatusFunc func(in1 *v1a.Node) (*v1a.Node, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
NodeClientMock is a mock implementation of NodeClient.
func TestSomethingThatUsesNodeClient(t *testing.T) { // make and configure a mocked NodeClient mockedNodeClient := &NodeClientMock{ CreateFunc: func(in1 *v1a.Node) (*v1a.Node, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, GetFunc: func(name string, options v1b.GetOptions) (*v1a.Node, error) { panic("mock out the Get method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.NodeList, error) { panic("mock out the List method") }, PatchFunc: func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Node, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1a.Node) (*v1a.Node, error) { panic("mock out the Update method") }, UpdateStatusFunc: func(in1 *v1a.Node) (*v1a.Node, error) { panic("mock out the UpdateStatus method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedNodeClient in code that requires NodeClient // and then make assertions. }
func (*NodeClientMock) CreateCalls ¶
func (mock *NodeClientMock) CreateCalls() []struct { In1 *v1a.Node }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedNodeClient.CreateCalls())
func (*NodeClientMock) Delete ¶
func (mock *NodeClientMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*NodeClientMock) DeleteCalls ¶
func (mock *NodeClientMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedNodeClient.DeleteCalls())
func (*NodeClientMock) Get ¶
func (mock *NodeClientMock) Get(name string, options v1b.GetOptions) (*v1a.Node, error)
Get calls GetFunc.
func (*NodeClientMock) GetCalls ¶
func (mock *NodeClientMock) GetCalls() []struct { Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedNodeClient.GetCalls())
func (*NodeClientMock) List ¶
func (mock *NodeClientMock) List(opts v1b.ListOptions) (*v1a.NodeList, error)
List calls ListFunc.
func (*NodeClientMock) ListCalls ¶
func (mock *NodeClientMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedNodeClient.ListCalls())
func (*NodeClientMock) Patch ¶
func (mock *NodeClientMock) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Node, error)
Patch calls PatchFunc.
func (*NodeClientMock) PatchCalls ¶
func (mock *NodeClientMock) PatchCalls() []struct { Name string Pt types.PatchType Data []byte Subresources []string }
PatchCalls gets all the calls that were made to Patch. Check the length with:
len(mockedNodeClient.PatchCalls())
func (*NodeClientMock) UpdateCalls ¶
func (mock *NodeClientMock) UpdateCalls() []struct { In1 *v1a.Node }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedNodeClient.UpdateCalls())
func (*NodeClientMock) UpdateStatus ¶
UpdateStatus calls UpdateStatusFunc.
func (*NodeClientMock) UpdateStatusCalls ¶
func (mock *NodeClientMock) UpdateStatusCalls() []struct { In1 *v1a.Node }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedNodeClient.UpdateStatusCalls())
func (*NodeClientMock) Watch ¶
func (mock *NodeClientMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*NodeClientMock) WatchCalls ¶
func (mock *NodeClientMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedNodeClient.WatchCalls())
type NodeControllerMock ¶
type NodeControllerMock struct { // AddGenericHandlerFunc mocks the AddGenericHandler method. AddGenericHandlerFunc func(ctx context.Context, name string, handler generic.Handler) // AddGenericRemoveHandlerFunc mocks the AddGenericRemoveHandler method. AddGenericRemoveHandlerFunc func(ctx context.Context, name string, handler generic.Handler) // CacheFunc mocks the Cache method. CacheFunc func() v1.NodeCache // CreateFunc mocks the Create method. CreateFunc func(in1 *v1a.Node) (*v1a.Node, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(name string) // GetFunc mocks the Get method. GetFunc func(name string, options v1b.GetOptions) (*v1a.Node, error) // GroupVersionKindFunc mocks the GroupVersionKind method. GroupVersionKindFunc func() schema.GroupVersionKind // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.NodeList, error) // OnChangeFunc mocks the OnChange method. OnChangeFunc func(ctx context.Context, name string, sync v1.NodeHandler) // OnRemoveFunc mocks the OnRemove method. OnRemoveFunc func(ctx context.Context, name string, sync v1.NodeHandler) // PatchFunc mocks the Patch method. PatchFunc func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Node, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1a.Node) (*v1a.Node, error) // UpdateStatusFunc mocks the UpdateStatus method. UpdateStatusFunc func(in1 *v1a.Node) (*v1a.Node, error) // UpdaterFunc mocks the Updater method. UpdaterFunc func() generic.Updater // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
NodeControllerMock is a mock implementation of NodeController.
func TestSomethingThatUsesNodeController(t *testing.T) { // make and configure a mocked NodeController mockedNodeController := &NodeControllerMock{ AddGenericHandlerFunc: func(ctx context.Context, name string, handler generic.Handler) { panic("mock out the AddGenericHandler method") }, AddGenericRemoveHandlerFunc: func(ctx context.Context, name string, handler generic.Handler) { panic("mock out the AddGenericRemoveHandler method") }, CacheFunc: func() v1.NodeCache { panic("mock out the Cache method") }, CreateFunc: func(in1 *v1a.Node) (*v1a.Node, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, EnqueueFunc: func(name string) { panic("mock out the Enqueue method") }, GetFunc: func(name string, options v1b.GetOptions) (*v1a.Node, error) { panic("mock out the Get method") }, GroupVersionKindFunc: func() schema.GroupVersionKind { panic("mock out the GroupVersionKind method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.NodeList, error) { panic("mock out the List method") }, OnChangeFunc: func(ctx context.Context, name string, sync v1.NodeHandler) { panic("mock out the OnChange method") }, OnRemoveFunc: func(ctx context.Context, name string, sync v1.NodeHandler) { panic("mock out the OnRemove method") }, PatchFunc: func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Node, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1a.Node) (*v1a.Node, error) { panic("mock out the Update method") }, UpdateStatusFunc: func(in1 *v1a.Node) (*v1a.Node, error) { panic("mock out the UpdateStatus method") }, UpdaterFunc: func() generic.Updater { panic("mock out the Updater method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedNodeController in code that requires NodeController // and then make assertions. }
func (*NodeControllerMock) AddGenericHandler ¶
func (mock *NodeControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*NodeControllerMock) AddGenericHandlerCalls ¶
func (mock *NodeControllerMock) AddGenericHandlerCalls() []struct { Ctx context.Context Name string Handler generic.Handler }
AddGenericHandlerCalls gets all the calls that were made to AddGenericHandler. Check the length with:
len(mockedNodeController.AddGenericHandlerCalls())
func (*NodeControllerMock) AddGenericRemoveHandler ¶
func (mock *NodeControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*NodeControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *NodeControllerMock) AddGenericRemoveHandlerCalls() []struct { Ctx context.Context Name string Handler generic.Handler }
AddGenericRemoveHandlerCalls gets all the calls that were made to AddGenericRemoveHandler. Check the length with:
len(mockedNodeController.AddGenericRemoveHandlerCalls())
func (*NodeControllerMock) Cache ¶
func (mock *NodeControllerMock) Cache() v1.NodeCache
Cache calls CacheFunc.
func (*NodeControllerMock) CacheCalls ¶
func (mock *NodeControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedNodeController.CacheCalls())
func (*NodeControllerMock) CreateCalls ¶
func (mock *NodeControllerMock) CreateCalls() []struct { In1 *v1a.Node }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedNodeController.CreateCalls())
func (*NodeControllerMock) Delete ¶
func (mock *NodeControllerMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*NodeControllerMock) DeleteCalls ¶
func (mock *NodeControllerMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedNodeController.DeleteCalls())
func (*NodeControllerMock) Enqueue ¶
func (mock *NodeControllerMock) Enqueue(name string)
Enqueue calls EnqueueFunc.
func (*NodeControllerMock) EnqueueCalls ¶
func (mock *NodeControllerMock) EnqueueCalls() []struct { Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedNodeController.EnqueueCalls())
func (*NodeControllerMock) Get ¶
func (mock *NodeControllerMock) Get(name string, options v1b.GetOptions) (*v1a.Node, error)
Get calls GetFunc.
func (*NodeControllerMock) GetCalls ¶
func (mock *NodeControllerMock) GetCalls() []struct { Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedNodeController.GetCalls())
func (*NodeControllerMock) GroupVersionKind ¶
func (mock *NodeControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*NodeControllerMock) GroupVersionKindCalls ¶
func (mock *NodeControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedNodeController.GroupVersionKindCalls())
func (*NodeControllerMock) Informer ¶
func (mock *NodeControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*NodeControllerMock) InformerCalls ¶
func (mock *NodeControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedNodeController.InformerCalls())
func (*NodeControllerMock) List ¶
func (mock *NodeControllerMock) List(opts v1b.ListOptions) (*v1a.NodeList, error)
List calls ListFunc.
func (*NodeControllerMock) ListCalls ¶
func (mock *NodeControllerMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedNodeController.ListCalls())
func (*NodeControllerMock) OnChange ¶
func (mock *NodeControllerMock) OnChange(ctx context.Context, name string, sync v1.NodeHandler)
OnChange calls OnChangeFunc.
func (*NodeControllerMock) OnChangeCalls ¶
func (mock *NodeControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1.NodeHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedNodeController.OnChangeCalls())
func (*NodeControllerMock) OnRemove ¶
func (mock *NodeControllerMock) OnRemove(ctx context.Context, name string, sync v1.NodeHandler)
OnRemove calls OnRemoveFunc.
func (*NodeControllerMock) OnRemoveCalls ¶
func (mock *NodeControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1.NodeHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedNodeController.OnRemoveCalls())
func (*NodeControllerMock) Patch ¶
func (mock *NodeControllerMock) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Node, error)
Patch calls PatchFunc.
func (*NodeControllerMock) PatchCalls ¶
func (mock *NodeControllerMock) PatchCalls() []struct { Name string Pt types.PatchType Data []byte Subresources []string }
PatchCalls gets all the calls that were made to Patch. Check the length with:
len(mockedNodeController.PatchCalls())
func (*NodeControllerMock) UpdateCalls ¶
func (mock *NodeControllerMock) UpdateCalls() []struct { In1 *v1a.Node }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedNodeController.UpdateCalls())
func (*NodeControllerMock) UpdateStatus ¶
UpdateStatus calls UpdateStatusFunc.
func (*NodeControllerMock) UpdateStatusCalls ¶
func (mock *NodeControllerMock) UpdateStatusCalls() []struct { In1 *v1a.Node }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedNodeController.UpdateStatusCalls())
func (*NodeControllerMock) Updater ¶
func (mock *NodeControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*NodeControllerMock) UpdaterCalls ¶
func (mock *NodeControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedNodeController.UpdaterCalls())
func (*NodeControllerMock) Watch ¶
func (mock *NodeControllerMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*NodeControllerMock) WatchCalls ¶
func (mock *NodeControllerMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedNodeController.WatchCalls())
type PodCacheMock ¶
type PodCacheMock struct { // AddIndexerFunc mocks the AddIndexer method. AddIndexerFunc func(indexName string, indexer v1.PodIndexer) // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1a.Pod, error) // GetByIndexFunc mocks the GetByIndex method. GetByIndexFunc func(indexName string, key string) ([]*v1a.Pod, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1a.Pod, error) // contains filtered or unexported fields }
PodCacheMock is a mock implementation of PodCache.
func TestSomethingThatUsesPodCache(t *testing.T) { // make and configure a mocked PodCache mockedPodCache := &PodCacheMock{ AddIndexerFunc: func(indexName string, indexer v1.PodIndexer) { panic("mock out the AddIndexer method") }, GetFunc: func(namespace string, name string) (*v1a.Pod, error) { panic("mock out the Get method") }, GetByIndexFunc: func(indexName string, key string) ([]*v1a.Pod, error) { panic("mock out the GetByIndex method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1a.Pod, error) { panic("mock out the List method") }, } // use mockedPodCache in code that requires PodCache // and then make assertions. }
func (*PodCacheMock) AddIndexer ¶
func (mock *PodCacheMock) AddIndexer(indexName string, indexer v1.PodIndexer)
AddIndexer calls AddIndexerFunc.
func (*PodCacheMock) AddIndexerCalls ¶
func (mock *PodCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1.PodIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedPodCache.AddIndexerCalls())
func (*PodCacheMock) GetByIndex ¶
GetByIndex calls GetByIndexFunc.
func (*PodCacheMock) GetByIndexCalls ¶
func (mock *PodCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedPodCache.GetByIndexCalls())
func (*PodCacheMock) GetCalls ¶
func (mock *PodCacheMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPodCache.GetCalls())
type PodClientMock ¶
type PodClientMock struct { // CreateFunc mocks the Create method. CreateFunc func(in1 *v1a.Pod) (*v1a.Pod, error) // DeleteFunc mocks the Delete method. DeleteFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(namespace string, name string, options v1b.GetOptions) (*v1a.Pod, error) // ListFunc mocks the List method. ListFunc func(namespace string, opts v1b.ListOptions) (*v1a.PodList, error) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Pod, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1a.Pod) (*v1a.Pod, error) // UpdateStatusFunc mocks the UpdateStatus method. UpdateStatusFunc func(in1 *v1a.Pod) (*v1a.Pod, error) // WatchFunc mocks the Watch method. WatchFunc func(namespace string, opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
PodClientMock is a mock implementation of PodClient.
func TestSomethingThatUsesPodClient(t *testing.T) { // make and configure a mocked PodClient mockedPodClient := &PodClientMock{ CreateFunc: func(in1 *v1a.Pod) (*v1a.Pod, error) { panic("mock out the Create method") }, DeleteFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, GetFunc: func(namespace string, name string, options v1b.GetOptions) (*v1a.Pod, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.PodList, error) { panic("mock out the List method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Pod, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1a.Pod) (*v1a.Pod, error) { panic("mock out the Update method") }, UpdateStatusFunc: func(in1 *v1a.Pod) (*v1a.Pod, error) { panic("mock out the UpdateStatus method") }, WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedPodClient in code that requires PodClient // and then make assertions. }
func (*PodClientMock) CreateCalls ¶
func (mock *PodClientMock) CreateCalls() []struct { In1 *v1a.Pod }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedPodClient.CreateCalls())
func (*PodClientMock) Delete ¶
func (mock *PodClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*PodClientMock) DeleteCalls ¶
func (mock *PodClientMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedPodClient.DeleteCalls())
func (*PodClientMock) Get ¶
func (mock *PodClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Pod, error)
Get calls GetFunc.
func (*PodClientMock) GetCalls ¶
func (mock *PodClientMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPodClient.GetCalls())
func (*PodClientMock) List ¶
func (mock *PodClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.PodList, error)
List calls ListFunc.
func (*PodClientMock) ListCalls ¶
func (mock *PodClientMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedPodClient.ListCalls())
func (*PodClientMock) Patch ¶
func (mock *PodClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Pod, error)
Patch calls PatchFunc.
func (*PodClientMock) PatchCalls ¶
func (mock *PodClientMock) PatchCalls() []struct { Namespace string Name string Pt types.PatchType Data []byte Subresources []string }
PatchCalls gets all the calls that were made to Patch. Check the length with:
len(mockedPodClient.PatchCalls())
func (*PodClientMock) UpdateCalls ¶
func (mock *PodClientMock) UpdateCalls() []struct { In1 *v1a.Pod }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedPodClient.UpdateCalls())
func (*PodClientMock) UpdateStatus ¶
UpdateStatus calls UpdateStatusFunc.
func (*PodClientMock) UpdateStatusCalls ¶
func (mock *PodClientMock) UpdateStatusCalls() []struct { In1 *v1a.Pod }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedPodClient.UpdateStatusCalls())
func (*PodClientMock) Watch ¶
func (mock *PodClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*PodClientMock) WatchCalls ¶
func (mock *PodClientMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedPodClient.WatchCalls())
type PodControllerMock ¶
type PodControllerMock struct { // AddGenericHandlerFunc mocks the AddGenericHandler method. AddGenericHandlerFunc func(ctx context.Context, name string, handler generic.Handler) // AddGenericRemoveHandlerFunc mocks the AddGenericRemoveHandler method. AddGenericRemoveHandlerFunc func(ctx context.Context, name string, handler generic.Handler) // CacheFunc mocks the Cache method. CacheFunc func() v1.PodCache // CreateFunc mocks the Create method. CreateFunc func(in1 *v1a.Pod) (*v1a.Pod, error) // DeleteFunc mocks the Delete method. DeleteFunc func(namespace string, name string, options *v1b.DeleteOptions) error // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GetFunc mocks the Get method. GetFunc func(namespace string, name string, options v1b.GetOptions) (*v1a.Pod, error) // GroupVersionKindFunc mocks the GroupVersionKind method. GroupVersionKindFunc func() schema.GroupVersionKind // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListFunc mocks the List method. ListFunc func(namespace string, opts v1b.ListOptions) (*v1a.PodList, error) // OnChangeFunc mocks the OnChange method. OnChangeFunc func(ctx context.Context, name string, sync v1.PodHandler) // OnRemoveFunc mocks the OnRemove method. OnRemoveFunc func(ctx context.Context, name string, sync v1.PodHandler) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Pod, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1a.Pod) (*v1a.Pod, error) // UpdateStatusFunc mocks the UpdateStatus method. UpdateStatusFunc func(in1 *v1a.Pod) (*v1a.Pod, error) // UpdaterFunc mocks the Updater method. UpdaterFunc func() generic.Updater // WatchFunc mocks the Watch method. WatchFunc func(namespace string, opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
PodControllerMock is a mock implementation of PodController.
func TestSomethingThatUsesPodController(t *testing.T) { // make and configure a mocked PodController mockedPodController := &PodControllerMock{ AddGenericHandlerFunc: func(ctx context.Context, name string, handler generic.Handler) { panic("mock out the AddGenericHandler method") }, AddGenericRemoveHandlerFunc: func(ctx context.Context, name string, handler generic.Handler) { panic("mock out the AddGenericRemoveHandler method") }, CacheFunc: func() v1.PodCache { panic("mock out the Cache method") }, CreateFunc: func(in1 *v1a.Pod) (*v1a.Pod, error) { panic("mock out the Create method") }, DeleteFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GetFunc: func(namespace string, name string, options v1b.GetOptions) (*v1a.Pod, error) { panic("mock out the Get method") }, GroupVersionKindFunc: func() schema.GroupVersionKind { panic("mock out the GroupVersionKind method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.PodList, error) { panic("mock out the List method") }, OnChangeFunc: func(ctx context.Context, name string, sync v1.PodHandler) { panic("mock out the OnChange method") }, OnRemoveFunc: func(ctx context.Context, name string, sync v1.PodHandler) { panic("mock out the OnRemove method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Pod, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1a.Pod) (*v1a.Pod, error) { panic("mock out the Update method") }, UpdateStatusFunc: func(in1 *v1a.Pod) (*v1a.Pod, error) { panic("mock out the UpdateStatus method") }, UpdaterFunc: func() generic.Updater { panic("mock out the Updater method") }, WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedPodController in code that requires PodController // and then make assertions. }
func (*PodControllerMock) AddGenericHandler ¶
func (mock *PodControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*PodControllerMock) AddGenericHandlerCalls ¶
func (mock *PodControllerMock) AddGenericHandlerCalls() []struct { Ctx context.Context Name string Handler generic.Handler }
AddGenericHandlerCalls gets all the calls that were made to AddGenericHandler. Check the length with:
len(mockedPodController.AddGenericHandlerCalls())
func (*PodControllerMock) AddGenericRemoveHandler ¶
func (mock *PodControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*PodControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *PodControllerMock) AddGenericRemoveHandlerCalls() []struct { Ctx context.Context Name string Handler generic.Handler }
AddGenericRemoveHandlerCalls gets all the calls that were made to AddGenericRemoveHandler. Check the length with:
len(mockedPodController.AddGenericRemoveHandlerCalls())
func (*PodControllerMock) Cache ¶
func (mock *PodControllerMock) Cache() v1.PodCache
Cache calls CacheFunc.
func (*PodControllerMock) CacheCalls ¶
func (mock *PodControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedPodController.CacheCalls())
func (*PodControllerMock) CreateCalls ¶
func (mock *PodControllerMock) CreateCalls() []struct { In1 *v1a.Pod }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedPodController.CreateCalls())
func (*PodControllerMock) Delete ¶
func (mock *PodControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*PodControllerMock) DeleteCalls ¶
func (mock *PodControllerMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedPodController.DeleteCalls())
func (*PodControllerMock) Enqueue ¶
func (mock *PodControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*PodControllerMock) EnqueueCalls ¶
func (mock *PodControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedPodController.EnqueueCalls())
func (*PodControllerMock) Get ¶
func (mock *PodControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Pod, error)
Get calls GetFunc.
func (*PodControllerMock) GetCalls ¶
func (mock *PodControllerMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPodController.GetCalls())
func (*PodControllerMock) GroupVersionKind ¶
func (mock *PodControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*PodControllerMock) GroupVersionKindCalls ¶
func (mock *PodControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedPodController.GroupVersionKindCalls())
func (*PodControllerMock) Informer ¶
func (mock *PodControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*PodControllerMock) InformerCalls ¶
func (mock *PodControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedPodController.InformerCalls())
func (*PodControllerMock) List ¶
func (mock *PodControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.PodList, error)
List calls ListFunc.
func (*PodControllerMock) ListCalls ¶
func (mock *PodControllerMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedPodController.ListCalls())
func (*PodControllerMock) OnChange ¶
func (mock *PodControllerMock) OnChange(ctx context.Context, name string, sync v1.PodHandler)
OnChange calls OnChangeFunc.
func (*PodControllerMock) OnChangeCalls ¶
func (mock *PodControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1.PodHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedPodController.OnChangeCalls())
func (*PodControllerMock) OnRemove ¶
func (mock *PodControllerMock) OnRemove(ctx context.Context, name string, sync v1.PodHandler)
OnRemove calls OnRemoveFunc.
func (*PodControllerMock) OnRemoveCalls ¶
func (mock *PodControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1.PodHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedPodController.OnRemoveCalls())
func (*PodControllerMock) Patch ¶
func (mock *PodControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Pod, error)
Patch calls PatchFunc.
func (*PodControllerMock) PatchCalls ¶
func (mock *PodControllerMock) PatchCalls() []struct { Namespace string Name string Pt types.PatchType Data []byte Subresources []string }
PatchCalls gets all the calls that were made to Patch. Check the length with:
len(mockedPodController.PatchCalls())
func (*PodControllerMock) UpdateCalls ¶
func (mock *PodControllerMock) UpdateCalls() []struct { In1 *v1a.Pod }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedPodController.UpdateCalls())
func (*PodControllerMock) UpdateStatus ¶
UpdateStatus calls UpdateStatusFunc.
func (*PodControllerMock) UpdateStatusCalls ¶
func (mock *PodControllerMock) UpdateStatusCalls() []struct { In1 *v1a.Pod }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedPodController.UpdateStatusCalls())
func (*PodControllerMock) Updater ¶
func (mock *PodControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*PodControllerMock) UpdaterCalls ¶
func (mock *PodControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedPodController.UpdaterCalls())
func (*PodControllerMock) Watch ¶
func (mock *PodControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*PodControllerMock) WatchCalls ¶
func (mock *PodControllerMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedPodController.WatchCalls())