Condition Coverage

blib/lib/Mail/GPG.pm
Criterion Covered Total %
condition 66 99 66.6


and 3 conditions

line !l l&&!r l&&r condition
218 276 63 94706 $data_fh and $stdin->can_write(0.001)
268 63 50 226 not $data_fh and eof $stderr_fh
113 89 137 not $data_fh and eof $stderr_fh and eof $stdout_fh
139 1 136 not $data_fh and eof $stderr_fh and eof $stdout_fh and !$status_fh || eof $status_fh
336 65 161 48 $fields[1] and $fields[1] =~ /^([eird])$/
124 102 0 $fields[11] and $fields[11] =~ /([D])/
345 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] =~ /<[^>]+>/
348 59 0 51 @ids and @emails
386 59 51 0 defined $fields[1] and $fields[1] eq 'FLUSH'
702 8 14 0 not $_no_sign and $key_id eq ''
730 22 0 0 $self->get_default_key_encrypt and $self->get_default_key_id
968 8 0 0 $self->get_default_key_encrypt and $self->get_default_key_id
1135 22 8 0 $is_armor and not $output_stdout =~ /^[\w-]+:/

or 2 conditions

line l !l condition
49 62 0 $gnupg_hash_init ||= {}
50 0 62 $digest ||= 'RIPEMD160'
51 0 62 $gpg_call ||= 'gpg'
52 0 62 $no_strict_7bit_encoding ||= 0
53 27 35 $use_long_key_ids ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
48 0 62 0 $ENV{'DUMPDIR'} || 'File::Spec'->tmpdir . '/mail-gpg-test'
0 62 0 $debug_dir ||= $ENV{'DUMPDIR'} || 'File::Spec'->tmpdir . '/mail-gpg-test'
129 17 56 0 not defined $encoding or $encoding =~ /^(quoted-printable|base64|7bit)\s*$/i
268 85 52 0 !$status_fh || eof $status_fh
336 48 0 226 $fields[1] and $fields[1] =~ /^([eird])$/ or $fields[11] and $fields[11] =~ /([D])/
339 0 0 48 $verbose or $debug
345 51 59 116 $tag eq 'pub' or $tag eq 'FLUSH'
348 0 0 59 @ids or @emails
390 59 12 39 not defined $fields[9] or $fields[9] =~ /^\s*$/
703 8 14 0 $_no_sign or defined $passphrase
1554 16 22 16 $entity->effective_type eq 'multipart/signed' or $entity->effective_type eq 'multipart/encrypted'

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
1380 0 10 10 0 $mail_fh xor $mail_sref
1538 0 54 0 0 $mail_fh xor $mail_sref