kubernetes/staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper_test.go

type serverHandlerConfig

func serverHandler(t *testing.T, config serverHandlerConfig) http.HandlerFunc {}

type serverFunc

func httpsServerInvalidHostname(t *testing.T) serverFunc {}

func httpsServerValidHostname(t *testing.T) serverFunc {}

func localhostCertPool(t *testing.T) *x509.CertPool {}

// be sure to unset environment variable https_proxy (if exported) before testing, otherwise the testing will fail unexpectedly.
func TestRoundTripAndNewConnection(t *testing.T) {}

// Tests SpdyRoundTripper constructors
func TestRoundTripConstuctor(t *testing.T) {}

type Interceptor

func (i *Interceptor) GetAuthContext() (int, map[string]string) {}

func (i *Interceptor) Rewrite(ctx context.Context, req *socks5.Request) (context.Context, *socks5.AddrSpec) {}

// be sure to unset environment variable https_proxy (if exported) before testing, otherwise the testing will fail unexpectedly.
func TestRoundTripSocks5AndNewConnection(t *testing.T) {}

func TestRoundTripPassesContextToDialer(t *testing.T) {}

var exampleCert

var exampleKey

var localhostCert

var localhostKey