| blib/lib/Mail/GPG.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 49 | 81 | 60.4 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 438 | 65 | 161 | 48 | $fields[1] and $fields[1] =~ /^([eird])$/ |
| 124 | 102 | 0 | $fields[11] and $fields[11] =~ /([D])/ | |
| 447 | 65 | 39 | 12 | $tag eq 'sub' and $gpg2_mode |
| 104 | 12 | 0 | $tag eq 'sub' and $gpg2_mode and $fields[4] | |
| 88 | 0 | 16 | $tag eq 'uid' and $gpg2_mode | |
| 88 | 0 | 16 | $tag eq 'uid' and $gpg2_mode and $fields[9] =~ /<[^>]+>/ | |
| 450 | 59 | 0 | 51 | @ids and @emails |
| 804 | 8 | 14 | 0 | not $_no_sign and $key_id eq '' |
| 832 | 22 | 0 | 0 | $self->get_default_key_encrypt and $self->get_default_key_id |
| 1070 | 8 | 0 | 0 | $self->get_default_key_encrypt and $self->get_default_key_id |
| 1237 | 22 | 8 | 0 | $is_armor and not $output_stdout =~ /^[\w-]+:/ |
| line | l | !l | condition |
|---|---|---|---|
| 53 | 62 | 0 | $gnupg_hash_init ||= {} |
| 54 | 0 | 62 | $digest ||= 'RIPEMD160' |
| 55 | 0 | 62 | $gpg_call ||= 'gpg' |
| 56 | 0 | 62 | $no_strict_7bit_encoding ||= 0 |
| 57 | 27 | 35 | $use_long_key_ids ||= 0 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 52 | 0 | 62 | 0 | $ENV{'DUMPDIR'} || 'File::Spec'->tmpdir . '/mail-gpg-test' |
| 0 | 62 | 0 | $debug_dir ||= $ENV{'DUMPDIR'} || 'File::Spec'->tmpdir . '/mail-gpg-test' | |
| 133 | 17 | 56 | 0 | not defined $encoding or $encoding =~ /^(quoted-printable|base64|7bit)\s*$/i |
| 291 | 11983 | 0 | 137 | $stdin_watcher || $data_watcher |
| 438 | 48 | 0 | 226 | $fields[1] and $fields[1] =~ /^([eird])$/ or $fields[11] and $fields[11] =~ /([D])/ |
| 441 | 0 | 0 | 48 | $verbose or $debug |
| 447 | 51 | 59 | 116 | $tag eq 'pub' or $tag eq 'FLUSH' |
| 450 | 0 | 0 | 59 | @ids or @emails |
| 805 | 8 | 14 | 0 | $_no_sign or defined $passphrase |
| 1656 | 16 | 22 | 16 | $entity->effective_type eq 'multipart/signed' or $entity->effective_type eq 'multipart/encrypted' |
| line | l&&r | l&&!r | !l&&r | !l&&!r | condition |
|---|---|---|---|---|---|
| 1482 | 0 | 10 | 10 | 0 | $mail_fh xor $mail_sref |
| 1640 | 0 | 54 | 0 | 0 | $mail_fh xor $mail_sref |