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

Function TestIDPCovServeMetadataWriteError

idp_coverage_test.go:147–153  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

145}
146
147func TestIDPCovServeMetadataWriteError(t *testing.T) {
148 test := idpcovNewTest(t)
149 w := &idpcovFailingResponseWriter{}
150 r := httptest.NewRequest("GET", "https://idp.example.com/saml/metadata", nil)
151 test.IDP.ServeMetadata(w, r)
152 assert.Check(t, is.Equal(http.StatusInternalServerError, w.code))
153}
154
155func TestIDPCovServeSSOMakeAssertionError(t *testing.T) {
156 test := idpcovNewTest(t)

Callers

nothing calls this directly

Calls 2

idpcovNewTestFunction · 0.85
ServeMetadataMethod · 0.45

Tested by

no test coverage detected