Branch Coverage

blib/lib/Mail/SpamAssassin/BayesStore.pm
Criterion Covered Total %
branch 4 56 7.1


line true false branch
243 0 0 if ($self->tie_db_writable)
247 0 0 unless (eval {
248 0 0 $@ ne '' ? :
251 0 0 unless ($self->{'bayes'}{'main'}{'learn_caller_will_untie'})
255 0 0 if (defined $eval_stat)
280 0 0 unless ($self->expiry_due)
288 0 0 if ($vars[10] > time)
297 0 0 if ($goal_reduction < 100000)
305 0 0 if ($goal_reduction < 1000)
314 0 0 if ($vars[9] > 0)
325 0 0 $vars[9] == 0 || $vars[9] > $goal_reduction ? :
344 0 0 if (time - $vars[4] > 2592000 or $vars[8] < $self->{'expiry_period'} or $vars[9] < 1000 or $newdelta < $self->{'expiry_period'} or $ratio > 1.5) { }
355 0 0 unless %delta
358 0 0 if (would_log("dbg", "bayes"))
362 0 0 exists $delta{$i} ? :
371 0 0 unless exists $delta{$max_expire_mult}
372 0 0 if ($delta{$max_expire_mult} > $goal_reduction)
388 0 0 if (not exists $delta{$max_expire_mult} or $delta{$max_expire_mult} < 1000)
409 0 0 if ($opts->{'verbose'}) { }
412 0 0 unless print "$msg\n$msg2\n"
413 0 0 unless printf "token frequency: 1-occurrence tokens: %3.2f%%\n", $hapax_pc
415 0 0 unless printf "token frequency: less than 8 occurrences: %3.2f%%\n", $lowfreq_pc
455 0 4 if $self->{'bayes'}{'main'}{'learn_force_expire'}
458 0 4 if $self->{'bayes'}{'main'}{'conf'}{'bayes_auto_expire'} == 0
466 4 0 if (not $self->{'bayes'}{'main'}{'ignore_safety_expire_timeout'}) { }
469 0 4 if $last_expire < 43200
474 0 0 if $last_expire < 300
480 0 0 if ($ntoks <= 100000 or $self->{'expiry_max_db_size'} > $ntoks or $vars[10] - $vars[5] < 43200 or $self->{'db_version'} < $self->DB_VERSION)