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

Function TestCovDecryptWithoutEncryptionMethod

xmlenc/decrypt_coverage_test.go:19–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

17}
18
19func TestCovDecryptWithoutEncryptionMethod(t *testing.T) {
20 el := etree.NewElement("EncryptedData")
21 _, err := Decrypt([]byte{}, el)
22 assert.Check(t, is.Error(err, ErrCannotFindRequiredElement("EncryptionMethod").Error()))
23}
24
25func TestCovGetCiphertext(t *testing.T) {
26 t.Run("missing", func(t *testing.T) {

Callers

nothing calls this directly

Calls 3

DecryptFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected