Branch Coverage

lib/Mail/SpamAssassin/Logger.pm
Criterion Covered Total %
branch 8 74 10.8


line true false branch
104 81 0 if (ref $facilities eq '') { }
0 0 elsif (ref $facilities eq 'ARRAY') { }
0 0 elsif (ref $facilities eq 'HASH') { }
105 0 81 if (defined $facilities and $facilities ne '0')
116 0 81 if (@facilities)
119 0 0 if $fac =~ /^(no)?(.+)\z/is
122 0 0 if (grep {not /^info\z/ || /^no./is;} keys %{$LOG_SA{'facility'};}) { }
123 0 0 if $LOG_SA{'level'} < 3
126 0 0 if $LOG_SA{'level'} < 2
153 0 0 if ($level eq 'error')
155 0 0 if $message[0] =~ /__ignore__/
160 0 0 if defined $caller[3] and defined $caller[0] and $caller[3] =~ /^\(eval\)$/ and $caller[0] =~ /^Mail::SpamAssassin(?:$|::)/
165 0 0 if $LOG_ENTERED
178 0 0 if ($first) { }
198 0 29337 if $LOG_SA{'level'} >= 3
211 0 10 if $LOG_SA{'level'} >= 2
222 0 0 if ($_[1] =~ /^([a-z0-9_-]*):/i) { }
230 0 0 if ($_[0] == 3)
233 0 0 exists $LOG_SA{'facility'}{$facility} ? :
0 0 unless exists $LOG_SA{'facility'}{$facility} ? $LOG_SA{'facility'}{$facility} : $LOG_SA{'facility'}{'all'}
239 0 0 if @args
244 0 0 $level == 2 ? :
269 0 0 unless (eval 'use Mail::SpamAssassin::Logger::' . $class . '; 1')
270 0 0 $@ ne '' ? :
274 0 0 unless (exists $LOG_SA{'method'}{$name})
278 0 0 unless (eval '$object = Mail::SpamAssassin::Logger::' . $class . '->new(%params); 1')
279 0 0 $@ ne '' ? :
282 0 0 if (not $object) { }
283 0 0 unless (defined $eval_stat)
312 0 0 if (exists $LOG_SA{'method'}{$name})
335 0 2600 if ($level eq 'info')
338 2600 0 if ($level eq 'dbg')
339 2600 0 if $LOG_SA{'level'} < 3
340 0 0 unless $facility
342 0 0 $LOG_SA{'facility'}{$facility} ? :
0 0 if exists $LOG_SA{'facility'}{$facility}
343 0 0 if $LOG_SA{'facility'}{'all'}