MCPcopy
hub / github.com/caddyserver/caddy / TestHTTPSRRALPNsIgnoresH2COnly

Function TestHTTPSRRALPNsIgnoresH2COnly

modules/caddyhttp/autohttps_test.go:38–47  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

36}
37
38func TestHTTPSRRALPNsIgnoresH2COnly(t *testing.T) {
39 srv := &Server{
40 Protocols: []string{"h2c"},
41 }
42
43 got := httpsRRALPNs(srv)
44 if len(got) != 0 {
45 t.Fatalf("unexpected ALPN values: got %v want none", got)
46 }
47}

Callers

nothing calls this directly

Calls 1

httpsRRALPNsFunction · 0.85

Tested by

no test coverage detected