Condition Coverage

blib/lib/Mail/SpamAssassin/BayesStore/DBM.pm
Criterion Covered Total %
condition 51 121 42.1


and 3 conditions

line !l l&&!r l&&r condition
146 12 0 2 $self->{'already_tied'} and $self->{'is_locked'} == 0
242 26 0 2 $self->{'already_tied'} and $self->{'is_locked'} == 1
313 4 22 0 $found and not $self->_upgrade_db
724 0 0 0 $ts < 8 and $th < 8
821 6 0 4 stat $self->_get_journal_filename and -f _
828 4 0 0 $vars[7] > 0 and time - $vars[7] > 86400
997 0 0 0 defined $regex and not $tok =~ /$regex/o
1215 0 0 2 stat $path && -f _
1260 0 0 2 stat $path && -f _
1394 1108 554 1108 $ts == 0 and $th == 0
1751 0 0 0 $spam_count == 0 and $ham_count == 0
1937 0 0 1662 $ts < 8 and $th < 8
1953 0 0 0 $self->{'already_tied'} && $self->{'is_locked'}

or 2 conditions

line l !l condition
1003 0 0 $prob ||= "0.5"
1383 1108 1662 $ts ||= 0
1384 554 2216 $th ||= 0
1902 3272 2264 $value ||= 0
1913 3134 0 $atime || 0
1925 126 2276 $ts || 0
138 2264 $th || 0
138 2264 $atime || 0
1936 1108 554 $ts ||= 0
554 1108 $th ||= 0
1662 0 $atime ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
121 0 63 0 ref $class || $class
723 0 0 0 not defined $oldest or $atime < $oldest
910 4 0 60 not $db_ver or $db_ver =~ /\D/
984 414 0 290 not $_ or $_ =~ /\D/
1021 10 0 0 not $running or $running =~ /\D/
1150 0 0 6 not defined $len or $len < 0
1167 0 0 0 not truncate(OUT, $original_point) or $write_failure++ > 4
1188 62 470 0 not defined $self->{'db_version'} or $self->{'db_version'} >= 1
1215 0 0 2 not stat $path && -f _ or -z _
1260 0 0 2 not stat $path && -f _ or -z _
1297 0 0 0 not exists $tokens{$tok} or $1 + 0 > $tokens{$tok}
1317 0 2 0 defined $_ or $! == 0
1406 4 0 1658 not defined $newmagic or $atime > $newmagic
1413 4 0 1658 not defined $oldmagic or $oldmagic eq ""
4 0 1658 not defined $oldmagic or $oldmagic eq "" or $atime < $oldmagic
1462 0 0 0 @files < 2 or not grep(/bayes_seen/, @files)
0 0 0 @files < 2 or not grep(/bayes_seen/, @files) or not grep(/bayes_toks/, @files)
1699 0 0 0 $db_version == 2 or $db_version == 3
1790 0 0 0 $flag eq "h" or $flag eq "s"
1807 0 0 0 defined $line or $! == 0