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

Function TestCovJWTSessionCodecEncodeError

samlsp/session_coverage_test.go:78–83  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

76}
77
78func TestCovJWTSessionCodecEncodeError(t *testing.T) {
79 codec := covSessionCodec(t)
80 codec.Key = nil
81 _, err := codec.Encode(JWTSessionClaims{})
82 assert.Check(t, err != nil)
83}
84
85func TestCovJWTSessionCodecDecode(t *testing.T) {
86 covSaveGlobals(t)

Callers

nothing calls this directly

Calls 2

covSessionCodecFunction · 0.85
EncodeMethod · 0.65

Tested by

no test coverage detected