Branch Coverage

blib/lib/Log/Deep/Read.pm
Criterion Covered Total %
branch 9 78 11.5


line true false branch
39 0 1 ref $caller ? :
82 0 0 if not @files or $warn
88 0 0 unless keys %files
99 0 0 if ($read < 1)
106 0 0 unless $file and $files{$file}
110 0 0 unless ($files{$file}{'handle'})
117 0 0 unless %files
126 0 0 if ($once % 1000 or not %files) { }
0 0 elsif ($$self{'follow'}) { }
129 0 0 unless -e $file
139 0 0 $lines ? :
140 0 0 !$read ? :
0 0 $lines ? :
150 0 0 unless %files
162 0 0 unless ref $file
169 0 0 unless $line
176 0 0 unless $line->id
182 0 0 unless $line->show
188 0 0 if ($Log::Deep::Read::EVAL_ERROR)
197 0 0 if ($$self{'number'}) { }
0 0 elsif ($$self{'session-number'}) { }
200 0 0 if (@lines > 10 * $$self{'number'})
209 0 0 unless $sessions{$session}
225 0 0 if (@lines)
230 0 0 if ($$self{'number'}) { }
0 0 elsif ($$self{'session-number'}) { }
231 0 0 @lines - $$self{'number'} <= 0 ? :
236 0 0 @lines - $$self{'session-number'} <= 0 ? :
254 0 0 unless (ref $file)
260 0 0 unless ($line)
266 0 0 unless $line
273 0 0 unless $line->show
282 0 0 if (not $$self{'last_print_file'} or "$$self{'last_print_file'}" ne "$file")
283 0 0 if ($$self{'file_count'} > 1)
298 0 55 unless $session_id
301 2 53 if $$self{'sessions'}{$session_id}
304 47 6 if ($$self{'background'} + 1 < @colours) { }
6 0 elsif ($$self{'foreground'} + 1 < @colours) { }
318 13 40 if ($excludes{$colours[$$self{'foreground'}] . $colours[$$self{'background'}]} or $$self{'foreground'} == $$self{'background'})