Condition Coverage

blib/lib/Crypt/OpenPGP.pm
Criterion Covered Total %
condition 38 82 46.3


and 3 conditions

line !l l&&!r l&&r condition
149 2 8 0 not $cfg_file and my $compat = $cfg->get("Compat")
278 2 0 0 not defined $pass and my $cb = $param{'PassphraseCallback'}
386 0 0 8 $ring and $kb = $ring->find_keyblock_by_keyid($key_id)
388 0 0 0 $cfg->get("AutoKeyRetrieve") and $cfg->get("KeyServer")
417 1 0 8 $kb && $kb->primary_uid
464 16 4 3 $param{'Recipients'} and not ref $param{'Recipients'}
480 11 0 0 $cfg->get("AutoKeyRetrieve") and $cfg->get("KeyServer")
488 1 0 14 $lr == 8 || $lr == 16 and not $r =~ /[^\da-fA-F]/
491 11 3 0 not @kb and $server
495 1 0 0 not @kb and $server
528 11 0 0 $param{'Compat'} and $param{'Compat'} eq "PGP2"
555 11 0 0 $param{'Passphrase'} && $param{'Compat'} && $param{'Compat'} eq 'PGP2'
618 2 0 0 not defined $pass and my $cb = $param{'PassphraseCallback'}
632 11 0 0 not defined $pass and my $cb = $param{'PassphraseCallback'}
645 24 0 0 not $key || $alg and ref $enc eq "Crypt::OpenPGP::Ciphertext"
722 0 0 2 $pub and $sec

or 2 conditions

line l !l condition
206 0 0 $param{'PassphraseCallback'} || \&Crypt::OpenPGP::_default_passphrase_cb
714 2 0 $param{'Size'} ||= 1024
715 0 2 $param{'Version'} ||= 4
759 0 1 $file ||= ""
774 0 29 $param->{'Compat'} || $pgp->{'cfg'}->get('Compat') || (return 1)

or 3 conditions

line l !l&&r !l&&!r condition
198 0 0 0 $class eq "Crypt::OpenPGP::OnePassSig" or $class eq "Crypt::OpenPGP::Signature"
213 0 0 0 defined $valid or $pgp->errstr =~ /^No Signature/
344 9 1 0 $param{'Signature'} or $param{'SigFile'}
471 1 11 11 $param{'Key'} or $param{'Recipients'}
488 1 13 1 $lr == 8 || $lr == 16
610 10 3 0 $kb or $cert
645 24 0 0 $key || $alg
689 0 1 23 ref $pieces[0] eq "Crypt::OpenPGP::OnePassSig" or ref $pieces[0] eq "Crypt::OpenPGP::Signature"