MCPcopy Create free account
hub / github.com/crewjam/saml / covURL

Function covURL

testsaml/parse_test.go:27–34  ·  view source on GitHub ↗
(param, value string)

Source from the content-addressed store, hash-verified

25}
26
27func covURL(param, value string) *url.URL {
28 return &url.URL{
29 Scheme: "https",
30 Host: "idp.example.com",
31 Path: "/saml",
32 RawQuery: url.Values{param: {value}}.Encode(),
33 }
34}
35
36func TestParseRedirect(t *testing.T) {
37 const payload = `<samlp:AuthnRequest ID="id-1"></samlp:AuthnRequest>`

Callers 1

TestParseRedirectFunction · 0.85

Calls 1

EncodeMethod · 0.65

Tested by

no test coverage detected