kubernetes/staging/src/k8s.io/client-go/discovery/cached/memory/memcache_test.go

type resourceMapEntry

type fakeDiscovery

func (c *fakeDiscovery) ServerResourcesForGroupVersion(groupVersion string) (*metav1.APIResourceList, error) {}

func (c *fakeDiscovery) ServerGroups() (*metav1.APIGroupList, error) {}

func TestClient(t *testing.T) {}

func TestServerGroupsFails(t *testing.T) {}

func TestPartialPermanentFailure(t *testing.T) {}

func TestPartialRetryableFailure(t *testing.T) {}

// Tests that schema instances returned by openapi cached and returned after
// successive calls
func TestOpenAPIMemCache(t *testing.T) {}

// Tests function "GroupsAndMaybeResources" when the "unaggregated" discovery is returned.
func TestMemCacheGroupsAndMaybeResources(t *testing.T) {}

// Tests function "GroupsAndMaybeResources" when the "aggregated" discovery is returned.
func TestAggregatedMemCacheGroupsAndMaybeResources(t *testing.T) {}

// Tests function "ServerGroups" when the "aggregated" discovery is returned.
func TestMemCacheAggregatedServerGroups(t *testing.T) {}

func groupNamesFromList(groups *metav1.APIGroupList) []string {}

func preferredVersionsFromList(groups *metav1.APIGroupList) []string {}

func groupVersionsFromGroups(groups *metav1.APIGroupList) []string {}

func groupVersionKinds(resources []*metav1.APIResourceList) []string {}

func failedGroupVersions(gvs map[schema.GroupVersion]error) []string {}