kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/testing/util.go

var grace

var enableServiceLinks

func DefaultHeader() http.Header {}

func DefaultClientConfig() *restclient.Config {}

func ObjBody(codec runtime.Codec, obj runtime.Object) io.ReadCloser {}

func BytesBody(bodyBytes []byte) io.ReadCloser {}

func StringBody(body string) io.ReadCloser {}

func TestData() (*corev1.PodList, *corev1.ServiceList, *corev1.ReplicationControllerList) {}

// EmptyTestData returns no pod, service, or replication controller
func EmptyTestData() (*corev1.PodList, *corev1.ServiceList, *corev1.ReplicationControllerList) {}

func SubresourceTestData() *corev1.Pod {}

func GenResponseWithJsonEncodedBody(bodyStruct interface{}

func InitTestErrorHandler(t *testing.T) {}

// WithAlphaEnvs calls func f with the given env-var-based feature gates enabled,
// and then restores the original values of those variables.
func WithAlphaEnvs(features []cmdutil.FeatureGate, t *testing.T, f func(*testing.T)) {}

// WithAlphaEnvs calls func f with the given env-var-based feature gates disabled,
// and then restores the original values of those variables.
func WithAlphaEnvsDisabled(features []cmdutil.FeatureGate, t *testing.T, f func(*testing.T)) {}