kubernetes/staging/src/k8s.io/cli-runtime/pkg/genericclioptions/command_headers_test.go

var kubectlCmd

var applyCmd

var createCmd

var secretCmd

var genericCmd

var authCmd

var reconcileCmd

func TestParseCommandHeaders(t *testing.T) {}

// Builds a hierarchy of commands in order from the passed slice of commands,
// by adding each subsequent command as a child of the previous command,
// returning the last leaf command.
func buildCommandChain(commands []*cobra.Command) *cobra.Command {}

// Tests that the CancelRequest function is propogated to the wrapped Delegate
// RoundTripper; but only if the Delegate implements the CancelRequest function.
func TestCancelRequest(t *testing.T) {}

type cancellableRoundTripper

func (rtc *cancellableRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {}

func (rtc *cancellableRoundTripper) CancelRequest(req *http.Request) {}

type nonCancellableRoundTripper

func (rtc *nonCancellableRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {}