code: func (c *FakeDiscovery) ServerGroupsAndResources() ([]*metav1.APIGroup, []*metav1.APIResourceList, error) {
  	sgs, err := c.ServerGroups()
  	if err != nil {
  		return nil, nil, err
  	}
  	resultGroups := []*metav1.APIGroup{}
  	for i := range sgs.Groups {
  		resultGroups = append(resultGroups, &sgs.Groups[i])
  	}
  
  	action := testing.ActionImpl{
  		Verb:     "get",
  		Resource: schema.GroupVersionResource{Resource: "resource"},
  	}
  	c.Invokes(action, nil)
  	return resultGroups, c.Resources, nil
  }
docs: // ServerGroupsAndResources returns the supported groups and resources for all groups and versions.