Branch Coverage

blib/lib/Log/Fu.pm
Criterion Covered Total %
branch 42 62 67.7


line true false branch
51 0 3 if ($USE_WATCHDOG)
56 6 15 if (exists $options{$k})
60 0 3 if (%options)
77 5 6 unless defined $params{'level'}
78 6 5 unless defined $params{'target'}
80 5 6 if (ref $params{'target'} eq 'CODE') { }
99 6 6 if (ref $_[$i] eq 'HASH')
110 2 4 unless defined $ulevel
112 0 6 unless defined $level
114 1 5 if ($subs) { }
129 6 19 if ($level < $$ret[1])
137 0 25 if $SHUSH
142 6 19 unless defined $pparams
151 17 2 if ($type == 1) { }
154 0 2 unless my $sub = $messages[0]
158 1 1 if ($type == 2) { }
1 0 elsif ($type == 3) { }
169 0 19 if ($Log::Fu::Color::USE_COLOR and $$pparams[3] or $FORCE_COLOR) { }
1 18 elsif ($DISPLAY_SEVERITY == -1) { }
171 0 0 if ($DISPLAY_SEVERITY <= 0)
182 0 19 if ($LINE_PREFIX)
185 0 19 if ($LINE_SUFFIX)
188 0 0 if ($$pparams[4] and $TERM_CLEAR_LINE)
192 19 0 if (ref $outfile eq 'CODE') { }
198 2 17 if ($ENABLE_SYSLOG)
221 0 50 if exists $export_cache{$fn_name}
243 0 55 if exists $export_cache{$fn_name}
268 0 3 unless defined $level
269 0 3 unless exists $sources{$pkgname}
278 1 0 if $ok
284 1 0 if $ok