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

Function checkOnlyKind

errors_test.go:94–100  ·  view source on GitHub ↗
(t *testing.T, err error, want error)

Source from the content-addressed store, hash-verified

92}
93
94func checkOnlyKind(t *testing.T, err error, want error) {
95 t.Helper()
96 assert.Assert(t, err != nil)
97 for _, kind := range allErrorKinds {
98 assert.Check(t, errors.Is(err, kind) == (kind == want), "errors.Is(%q, %v)", err, kind)
99 }
100}
101
102func TestParseXMLResponseErrorKinds(t *testing.T) {
103 e := spcovSetup(t)

Calls

no outgoing calls

Tested by

no test coverage detected