Branch Coverage

lib/LEOCHARRE/DEBUG.pm
Criterion Covered Total %
branch 21 50 42.0


line true false branch
14 0 12 ref $_[0] ? :
16 2 10 if defined $val
30 0 0 unless $DEBUG
39 0 0 if (ref $val)
48 0 0 if ($debug_label =~ /^[a-z]/i) { }
49 0 0 unless $debug_label eq $DEBUG
55 0 0 unless $DEBUG >= $debug_label
67 0 0 if (${"${pkg}::_DEBUG_LAST_CALLER";} ne $sub)
71 0 0 unless ${"${pkg}::_DEBUG_SHOW_NAMESPACE";}
77 0 0 unless (${"${pkg}::_DEBUG_SHOW_WHOLE_NAMESPACE";})
81 0 0 if (${"${pkg}::_DEBUG_SHOW_NAMESPACE";} or $caller_changed)
85 0 0 unless defined $val
88 0 0 if (ref $val)
96 0 0 if ($val =~ /\n$/) { }
114 2 34 unless $DEBUG
126 9 25 if ($debug_level > 1)
133 9 0 $sub eq 'main' ? :
145 4 30 if ($LEOCHARRE::DEBUG::USE_COLOR or $debug_level > 2) { }
149 2 2 $LEOCHARRE::DEBUG::USE_COLOR =~ /[a-z]/ ? :
174 0 34 unless ${"${pkg}::DEBUG";}
178 9 25 if $LEOCHARRE::DEBUG::DEBUG_SHOW_WHOLE_NAMESPACE or ${"${pkg}::DEBUG";} > 1
191 1 44 if (ref $msg and ref $msg eq 'ARRAY' || ref $msg eq 'HASH') { }
1 43 elsif (ref $msg) { }
211 1 4 if ($_ =~ /use_color/)
251 0 0 if ($_ eq '-d')