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

Function TestValidateLogoutRequestFormWithoutRootElement

no_root_test.go:15–19  ·  view source on GitHub ↗

The no-root checks added after the reports of nil pointer dereferences on a body with no root element, for the paths that had no test.

(t *testing.T)

Source from the content-addressed store, hash-verified

13// The no-root checks added after the reports of nil pointer dereferences on
14// a body with no root element, for the paths that had no test.
15func TestValidateLogoutRequestFormWithoutRootElement(t *testing.T) {
16 e := spcovSetup(t)
17 _, err := e.sp.ValidateLogoutRequestForm(base64.StdEncoding.EncodeToString([]byte("<!-- nothing -->")))
18 assert.Check(t, is.Error(spcovPrivateErr(t, err), "invalid xml: no root"))
19}
20
21func TestSimpleSignMessageWithoutRootElement(t *testing.T) {
22 e := spcovSetup(t)

Callers

nothing calls this directly

Calls 4

spcovSetupFunction · 0.85
spcovPrivateErrFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected