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)
| 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. |
| 15 | func 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 | |
| 21 | func TestSimpleSignMessageWithoutRootElement(t *testing.T) { |
| 22 | e := spcovSetup(t) |
nothing calls this directly
no test coverage detected