func TestCachedHasSynced(t *testing.T) { … } func TestProtectedLister(t *testing.T) { … } var errFakeLister … type fakeLister … func (f *fakeLister) List(selector labels.Selector) (ret []runtime.Object, err error) { … } func (f *fakeLister) Get(name string) (runtime.Object, error) { … } func (f *fakeLister) ByNamespace(namespace string) cache.GenericNamespaceLister { … }