Branch Coverage

blib/lib/Log/Easy/Filter.pm
Criterion Covered Total %
branch 15 90 16.6


line true false branch
19 0 0 unless defined $max
21 0 0 unless (defined $separator and length $separator > 0)
24 0 0 defined $piece ? :
26 0 0 $lp < $max ? :
28 0 0 $sp eq 'space' ? :
30 0 0 $lr < $max ? :
31 0 0 $sp eq 'space' ? :
42 0 0 unless defined $max
44 0 0 unless (defined $separator and length $separator > 0)
47 0 0 defined $piece ? :
49 0 0 $lp < $max ? :
51 0 0 $sp eq 'space' ? :
53 0 0 $lr < $max ? :
54 0 0 $sp eq 'space' ? :
65 0 0 unless defined $max
67 0 0 unless (defined $separator and length $separator > 0)
70 0 0 defined $piece ? :
72 0 0 $lp < $max ? :
74 0 0 $sp eq 'space' ? :
76 0 0 $lr < $max ? :
77 0 0 $sp eq 'space' ? :
94 0 1 exists $ENV{'LOG_FILTER_DEBUG'} ? :
95 0 1 exists $ENV{'LOG_FILTER_PACKAGES_DEBUG'} ? :
98 0 1 if $ENV{'LOG_FILTER_DEBUG'}
100 1 0 unless (defined $FILTER_REGEX)
102 0 1 if ($ENV{'LOG_FILTER'} =~ /^off$/i) { }
1 0 elsif ($ENV{'LOG_FILTER'} =~ /^(on|\d+)$/i) { }
103 0 0 if $ENV{'LOG_FILTER_DEBUG'}
107 0 1 if $ENV{'LOG_FILTER_DEBUG'}
111 0 0 if $ENV{'LOG_FILTER_DEBUG'}
115 0 0 if ($piece =~ /^\!/) { }
122 0 0 if $ENV{'LOG_FILTER_DEBUG'}
123 0 0 if $ENV{'LOG_FILTER_DEBUG'}
124 0 0 if (scalar keys %filter) { }
132 0 0 if $ENV{'LOG_FILTER_DEBUG'}
133 0 0 $_ =~ /$not_filter_rx/ ? :
134 0 0 $_ =~ /$not_filter_rx/ ? :
137 0 1 if $ENV{'LOG_FILTER_DEBUG'}
140 0 1 if $ENV{'LOG_FILTER_DEBUG'}
141 0 1 if $ENV{'LOG_FILTER_DEBUG'}
144 0 1 if $ENV{'LOG_FILTER_DEBUG'}
147 1 0 unless (defined $FILTER_ALL_REGEX)
150 0 1 if $ENV{'LOG_FILTER_DEBUG'}
153 1 0 unless (defined $MATCH_LOG_LEVEL_REGEX)
156 0 1 if $ENV{'LOG_FILTER_DEBUG'}