Condition Coverage

blib/lib/Mail/GPG/Test.pm
Criterion Covered Total %
condition 33 79 41.7


and 3 conditions

line !l l&&!r l&&r condition
212 6 4 2 $encoding eq 'base64' and $method eq 'armor_sign'
242 12 12 0 not $invalid and $@
247 12 12 0 not $invalid and $result->get_sign_key_id ne $self->get_key_id || $result->get_sign_mail ne $self->get_key_mail
255 12 12 0 not $invalid and $result->get_sign_trust ne '-'
356 0 12 12 $method =~ /encrypt/ and not $method =~ /sign/
12 12 0 $method =~ /encrypt/ and not $method =~ /sign/ and $result->get_is_signed || $result->get_sign_key_id || $result->get_sign_mail || $result->get_sign_ok
367 0 0 12 $result->get_sign_ok && $result->get_is_signed && $result->get_sign_key_id eq $self->get_key_id && $result->get_sign_mail eq $self->get_key_mail
12 12 0 $method =~ /sign/ and not $result->get_sign_ok && $result->get_is_signed && $result->get_sign_key_id eq $self->get_key_id && $result->get_sign_mail eq $self->get_key_mail
378 0 0 24 $result->get_is_encrypted and $result->get_enc_ok
0 0 24 $result->get_is_encrypted and $result->get_enc_ok and $result->get_enc_key_id eq $self->get_key_sub_id
0 0 24 $result->get_is_encrypted and $result->get_enc_ok and $result->get_enc_key_id eq $self->get_key_sub_id and $result->get_enc_mail eq $self->get_key_mail
387 0 0 0 $result->get_is_encrypted and $result->get_enc_ok
0 0 0 $result->get_is_encrypted and $result->get_enc_ok and $result->get_enc_key_id eq $self->get_key_sub_id
412 0 0 8 $dec_entity->parts(0)->body_as_string eq $entity->parts(0)->body_as_string && $dec_entity->parts(1)->body_as_string eq $entity->parts(1)->body_as_string
535 0 0 6 $result->get_sign_ok and $result->get_is_signed
0 0 6 $result->get_sign_ok and $result->get_is_signed and $result->get_sign_key_id eq $self->get_key_id
0 0 6 $result->get_sign_ok and $result->get_is_signed and $result->get_sign_key_id eq $self->get_key_id and $result->get_sign_mail eq $self->get_key_mail
544 0 0 6 $result->get_is_encrypted and $result->get_enc_ok
0 0 6 $result->get_is_encrypted and $result->get_enc_ok and $result->get_enc_key_id eq $self->get_key_sub_id
0 0 6 $result->get_is_encrypted and $result->get_enc_ok and $result->get_enc_key_id eq $self->get_key_sub_id and $result->get_enc_mail eq $self->get_key_mail
553 0 0 0 $result->get_is_encrypted and $result->get_enc_ok
0 0 0 $result->get_is_encrypted and $result->get_enc_ok and $result->get_enc_key_id eq $self->get_key_sub_id

or 2 conditions

line l !l condition
20 0 6 $ENV{'DUMPDIR'} || './mail-gpg-test'
438 6 0 $chunks ||= 200000

or 3 conditions

line l !l&&r !l&&!r condition
212 12 5 7 $invalid or $encoding eq 'base64' and $method eq 'armor_sign'
247 0 0 12 $result->get_sign_key_id ne $self->get_key_id || $result->get_sign_mail ne $self->get_key_mail
356 0 0 12 $result->get_is_signed || $result->get_sign_key_id || $result->get_sign_mail || $result->get_sign_ok