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 33 383 if ($line =~ /^(GOOD|EXP|EXPKEY|REVKEY|BAD)SIG\s+([^\s]+)\s+(.*)/) { }
0 383 elsif ($line =~ /^ERRSIG\s+([^\s]+)/) { }
30 353 elsif ($line =~ /^VALIDSIG\s+([^\s]+)/) { }
30 323 elsif ($line =~ /^ENC_TO\s+([^\s]+)/) { }
30 293 elsif ($line =~ /^USERID_HINT\s+([^\s]+)\s+(.*)/) { }
30 263 elsif ($line =~ /^BEGIN_DECRYPTION/) { }
30 233 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 38 9 if defined $_
148 0 93 unless defined $str
150 93 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'}