Condition Coverage

blib/lib/Mail/SpamAssassin/Plugin/DKIM.pm
Criterion Covered Total %
condition 11 123 8.9


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 300 defined $value and not $value =~ /^$/
671 0 1 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 47 34 0 defined $suppl_attrib and exists $suppl_attrib->{'dkim_signatures'}
808 0 4 0 $self->{'main'}->UNIVERSAL::can('time_method') && $self->{'main'}->time_method('check_dkim_signature')
811 0 0 4 $edns and $edns >= 1024
879 4 0 0 @signatures and $pms->{'tests_already_hit'}{'__TRUNCATED'}
897 0 0 0 $valid and $signature->UNIVERSAL::can('check_expiration')
902 0 0 0 $valid and not $expired
0 0 0 $valid and not $expired and $minimum_key_bits
904 0 0 0 $pk and $pk->cork
910 0 0 0 $valid and not $expired
920 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
939 0 0 0 defined $d && $pms->{'dkim_author_domains'}{$d}
955 0 0 0 defined $_ && $_ ne '' && !$seen1{$_}++
957 0 0 0 defined $_ && $_ ne '' && !$seen2{$_}++
959 0 0 0 defined $_ && $_ ne '' && !$seen3{$_}++
970 0 0 0 $sig_result_supported && $sig
1014 4 0 0 $pms->{'dkim_has_any_author_sig'}{$author_domain} and not $pms->{'dkim_signatures_dependable'}
1074 0 4 0 $self->{'main'}->UNIVERSAL::can('time_method') && $self->{'main'}->time_method('check_dkim_adsp')
1254 0 0 0 $valid and $signature->UNIVERSAL::can('check_expiration')
1258 0 0 0 $valid and not $expired
0 0 0 $valid and not $expired and $minimum_key_bits
1260 0 0 0 $key_size and $key_size < $minimum_key_bits

or 3 conditions

line l !l&&r !l&&!r condition
143 0 62 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
1110 0 0 4 not defined $sp or $sp eq ''
1170 0 0 0 $self->check_dkim_valid($pms) or would_log('dbg', 'dkim')
1282 0 0 0 not defined $acceptable_sdid or $acceptable_sdid eq ''
1323 0 0 0 not $valid or $expired
0 0 0 not $valid or $expired or $key_size_weak