Branch Coverage

blib/lib/Mail/GPG/Result.pm
Criterion Covered Total %
branch 24 50 48.0


line true false branch
52 0 52 unless defined $gpg_stdout
53 0 52 unless defined $gpg_stderr
54 0 52 unless defined $gpg_status
83 35 381 if ($line =~ /^(GOOD|EXP|EXPKEY|REVKEY|BAD)SIG\s+([^\s]+)\s+(.*)/) { }
0 381 elsif ($line =~ /^ERRSIG\s+([^\s]+)/) { }
30 351 elsif ($line =~ /^VALIDSIG\s+([^\s]+)/) { }
30 321 elsif ($line =~ /^ENC_TO\s+([^\s]+)/) { }
30 291 elsif ($line =~ /^USERID_HINT\s+([^\s]+)\s+(.*)/) { }
30 261 elsif ($line =~ /^BEGIN_DECRYPTION/) { }
30 231 elsif ($line =~ /^DECRYPTION_OKAY/) { }
106 30 0 if ($key_id eq $hint_key_id)
122 29 23 unless ($self->get_mail_gpg->get_use_long_key_ids)
124 39 8 if defined $_
148 0 95 unless defined $str
150 95 0 if $] >= 5.008
168 0 0 if ($attr eq 'sign_mail_aliases') { }
0 0 elsif ($attr eq 'enc_key_ids') { }
0 0 elsif ($attr eq 'enc_mails') { }
187 0 0 unless defined $value
197 0 0 unless $_
202 0 0 unless $no_stdout
215 0 0 if ($self->get_is_encrypted) { }
216 0 0 $self->get_enc_ok ? :
225 0 0 if ($self->get_is_signed) { }
243 0 12 if exists $self->{'sign_trust'}