(t *testing.T)
| 145 | } |
| 146 | |
| 147 | func 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 | |
| 155 | func TestIDPCovServeSSOMakeAssertionError(t *testing.T) { |
| 156 | test := idpcovNewTest(t) |
nothing calls this directly
no test coverage detected