Condition Coverage

blib/lib/Mail/SpamAssassin/Plugin/DKIM.pm
Criterion Covered Total %
condition 4 123 3.2


and 3 conditions

line !l l&&!r l&&r condition
401 0 0 0 defined $value and not $value =~ /^$/
421 0 0 0 defined $value and not $value =~ /^$/
441 0 0 0 defined $value and not $value =~ /^$/
463 0 0 310 defined $value and not $value =~ /^$/
671 0 0 0 $self->{'main'}->UNIVERSAL::can('time_method') && $self->{'main'}->time_method('dkim_load_modules')
717 0 0 0 $sig->UNIVERSAL::can('check_expiration') and not $sig->check_expiration
720 0 0 0 $minimum_key_bits and $sig->{'_spamassassin_key_size'}
0 0 0 $minimum_key_bits and $sig->{'_spamassassin_key_size'} and $sig->{'_spamassassin_key_size'} < $minimum_key_bits
789 44 33 0 defined $suppl_attrib and exists $suppl_attrib->{'dkim_signatures'}
808 0 0 0 $self->{'main'}->UNIVERSAL::can('time_method') && $self->{'main'}->time_method('check_dkim_signature')
811 0 0 0 $edns and $edns >= 1024
872 0 0 0 @signatures and $pms->{'tests_already_hit'}{'__TRUNCATED'}
889 0 0 0 $valid and $signature->UNIVERSAL::can('check_expiration')
894 0 0 0 $valid and not $expired
0 0 0 $valid and not $expired and $minimum_key_bits
896 0 0 0 $pk and $pk->cork
902 0 0 0 $valid and not $expired
912 0 0 0 $valid and not $expired
0 0 0 $valid and not $expired and $key_size
0 0 0 $valid and not $expired and $key_size and $key_size >= $minimum_key_bits
931 0 0 0 defined $d && $pms->{'dkim_author_domains'}{$d}
947 0 0 0 defined $_ && $_ ne '' && !$seen1{$_}++
949 0 0 0 defined $_ && $_ ne '' && !$seen2{$_}++
951 0 0 0 defined $_ && $_ ne '' && !$seen3{$_}++
962 0 0 0 $sig_result_supported && $sig
1006 0 0 0 $pms->{'dkim_has_any_author_sig'}{$author_domain} and not $pms->{'dkim_signatures_dependable'}
1066 0 0 0 $self->{'main'}->UNIVERSAL::can('time_method') && $self->{'main'}->time_method('check_dkim_adsp')
1245 0 0 0 $valid and $signature->UNIVERSAL::can('check_expiration')
1249 0 0 0 $valid and not $expired
0 0 0 $valid and not $expired and $minimum_key_bits
1251 0 0 0 $key_size and $key_size < $minimum_key_bits

or 3 conditions

line l !l&&r !l&&!r condition
143 0 63 0 ref $class || $class
610 0 0 0 $author_domains{$doms} or grep {/\.\Q$doms\E\z/s;} keys %author_domains
653 0 0 0 $pms->{'dkim_match_in_whitelist_from_dkim'} || $pms->{'dkim_match_in_whitelist_auth'}
660 0 0 0 $pms->{'dkim_match_in_def_whitelist_from_dkim'} || $pms->{'dkim_match_in_def_whitelist_auth'}
734 0 0 0 $sdid eq $d or $sdid =~ /\.\Q$d\E\z/s
1102 0 0 0 not defined $sp or $sp eq ''
1162 0 0 0 $self->check_dkim_valid($pms) or would_log('dbg', 'dkim')
1273 0 0 0 not defined $acceptable_sdid or $acceptable_sdid eq ''
1314 0 0 0 not $valid or $expired
0 0 0 not $valid or $expired or $key_size_weak