Condition Coverage

lib/Mail/SpamAssassin/Util.pm
Criterion Covered Total %
condition 57 134 42.5


and 3 conditions

line !l l&&!r l&&r condition
204 0 0 0 defined $blank and $blank
265 0 0 0 length $host <= 255 and $host =~ /^[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*$/i
366 0 0 0 $errno ne '' and $errno ne '0'
379 0 0 0 !defined($errno) || $errno == 0 and WIFEXITED($exit_status)
491 26 0 0 length $yyyy == 2 and $yyyy < 50
506 0 0 0 s/\b([A-Z]{2,4}(?:-DST)?)\b/ / and exists $TZ{$1}
544 8 0 0 !($yyyy % 4) && ($yyyy % 100 || !($yyyy % 400))
654 402 164 3126 $pos_mod != 0 and $overflow == 0
696 0 0 7 length($_) % 4 == 0 and m[^(?:[A-Za-z0-9+/=]{2,}={0,2})$]s
724 0 0 0 defined $decoded_length and length $out >= $decoded_length
914 0 0 8 $ip =~ /:/ && $ip =~ /^[0-9a-fA-F:.]{2,}\z/
1001 6 328 0 not $name and $ct =~ /\b(?:file)?name\*0\s*=/i
1026 68 21 245 $ct =~ /^text\b/ and not $ct =~ m[^text/(?:x-vcard|calendar|html)$]
1121 0 0 61 defined $tmpdir and $tmpdir ne ''
1423 0 0 10 defined $time and $time
1444 0 8 0 @rcvd and $rcvd[0] =~ /\bby localhost with \w+ \(fetchmail-[\d.]+/

or 2 conditions

line l !l condition
502 26 0 $4 || 0
514 26 0 $tzoff ||= '-0000'
521 26 0 $hh ||= 0
26 0 $mm ||= 0
26 0 $ss ||= 0
26 0 $dd ||= 0
26 0 $mmm ||= 0
26 0 $yyyy ||= 0
628 349 0 shift() || ''
629 349 0 shift() || ''
630 176 173 shift() || ''
631 349 0 shift() || 77
632 5 344 shift() || 0
965 139 195 $_[-1] || 'text/plain; charset=us-ascii'
1298 250 1740 $rest ||= ''
1431 10 0 $header ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
298 82 0 0 $r eq 'SCALAR' or $r eq 'REF'
366 0 0 0 0 + $errno != 0 or $errno ne '' and $errno ne '0'
379 0 0 0 !defined($errno) || $errno == 0
540 3 1 22 $mmm == 4 or $mmm == 6
4 5 17 $mmm == 4 or $mmm == 6 or $mmm == 9
6 0 17 $mmm == 4 or $mmm == 6 or $mmm == 9 or $mmm == 11
597 0 2 0 $time || time
633 173 176 0 shift() || qr/\s/
1026 0 313 21 not $ct or $ct =~ /^text\b/ and not $ct =~ m[^text/(?:x-vcard|calendar|html)$]
1119 0 61 0 $ENV{'TMPDIR'} || 'File::Spec'->tmpdir
1239 34 29 2010 $uri =~ /^mailto:/i or $uri =~ /^[^:]*\@/
1439 0 0 8 $rcvd[0] =~ /qmail \d+ invoked by uid \d+/ or $rcvd[0] =~ /\bfrom (?:localhost\s|(?:\S+ ){1,2}\S*\b127\.0\.0\.1\b)/
1680 0 0 0 $] < 5.008 or am_running_on_windows()
1701 0 0 42 not defined $re or $re eq ''
1745 0 0 0 $lang ||= $ENV{'LANGUAGE'}
1746 0 0 0 $lang ||= $ENV{'LC_MESSAGES'}
1747 0 0 0 $lang ||= $ENV{'LANG'}
1812 6 32 0 $is_spam or $score < $rscore