MCPcopy Create free account
hub / github.com/WICG/webpackage / urlMustParse

Function urlMustParse

go/bundle/encoder_test.go:13–19  ·  view source on GitHub ↗
(rawurl string)

Source from the content-addressed store, hash-verified

11)
12
13func urlMustParse(rawurl string) *url.URL {
14 u, err := url.Parse(rawurl)
15 if err != nil {
16 panic(err)
17 }
18 return u
19}
20
21func TestVariants(t *testing.T) {
22 variants, err := parseVariants("Accept-Encoding;gzip;br, Accept-Language;en;fr;ja")

Calls

no outgoing calls

Tested by

no test coverage detected