Branch Coverage

blib/lib/App/loggrep.pm
Criterion Covered Total %
branch 85 128 66.4


line true false branch
26 0 12 unless (defined $filename)
30 0 12 unless (-e $filename)
34 0 12 if (-d $filename)
38 0 12 unless (-r $filename)
42 0 12 unless tie @lines, 'Tie::File', $filename
59 8 4 if ($start)
61 0 8 unless $s
65 8 4 if ($end)
67 0 8 unless $s
70 0 8 unless @inclusions or @exclusions or $start or $end
78 3 7 if ($opt->context or $opt->before or $opt->after)
80 2 3 if $opt->before and $opt->before > $before
82 1 4 if $opt->after and $opt->after > $after
92 0 0 if ($@)
98 24 0 unless $orig
103 0 0 if (my $e = $@)
123 0 16 unless ($rx)
127 0 16 if $quote
128 2 14 $insensitive ? :
129 0 16 if ($@)
141 55 94 if (shift()) =~ /$date/
144 0 12 unless @$lines
146 1 11 if $blank
150 55 94 if $t
151 94 0 if $quiet
153 0 0 if ($warn)
165 4 51 if ($abuf) { }
24 27 elsif ($before) { }
173 16 8 if @bbuf > $before
178 1 7 if $blank and $previous and $previous + 1 < $lineno
185 8 4 if ($time_filter)
190 8 32 if $t1
192 0 8 unless $t1
195 8 16 if $t2
197 0 8 unless $start
198 0 8 unless $end
199 0 8 unless $end >= $t1
200 0 8 unless $start <= $t2
203 4 8 if ($before)
205 4 0 if $i < 0
209 81 8 if ($time_filter)
211 46 35 unless ($t)
215 7 28 if ($t > $end)
216 1 6 if ($abuf--) { }
224 5 23 if ($t < $start)
231 3 1 if ($line =~ /$_/)
236 30 1 if ($good)
238 3 1 if ($line =~ /$_/)
244 27 4 if ($good) { }
247 11 16 if $before
259 3 5 if $start <= $t1
265 5 4 if $i == $$s[0]
268 0 4 if ($rev) { }
270 0 0 if ($revcount > 1)
271 0 0 if $i
281 0 4 unless ($t)
282 0 0 $rev ? :
283 0 0 unless $i
284 0 0 if $i > $lim
288 0 4 if $t == $start
289 3 1 if ($t < $start) { }
295 0 4 if ($$s[0] == $$e[0])
296 0 0 if $i
307 0 9 unless $delta