Branch Coverage

blib/lib/File/Tail/Lite.pm
Criterion Covered Total %
branch 9 22 40.9


line true false branch
12 0 1 unless (defined $$self{'filename'} and -e $$self{'filename'})
18 0 1 unless (open $$self{'fh'}, '<', $$self{'filename'})
26 0 1 if (not defined $$self{'seekpos'}) { }
31 1 0 if ($$self{'seekpos'} eq 'begin' or $$self{'seekpos'} eq 'new' or $$self{'seekpos'} eq 'start') { }
0 0 elsif ($$self{'seekpos'} eq 'end' or $$self{'seekpos'} eq 'eof') { }
0 0 elsif ($$self{'seekpos'} =~ /^[0-9]+$/) { }
52 0 1 unless (sysseek $$self{'fh'}, $seek_position, $seek_whence)
58 0 0 if not $$self{'maxbuf'} or int $$self{'maxbuf'} < 1 or int $$self{'maxbuf'} > 1048576
68 0 18 if ($$self{'error'})
76 4492 0 if ($ret) { }
78 18 4474 if ($buf =~ /[\r\n]/ or length $line >= $$self{'maxbuf'})