Branch Coverage

blib/lib/File/LogReader.pm
Criterion Covered Total %
branch 19 28 67.8


line true false branch
63 0 10 unless $$self{'filename'}
64 0 10 unless -e $$self{'filename'}
66 1 9 unless (-d $$self{'state_dir'})
67 0 1 unless mkdir $$self{'state_dir'}
77 1 9 unless $self->_obtain_lock
103 0 6 unless $fh
118 1 9 unless -f $$self{'state_file'}
125 0 9 if ($pos < $$state{'pos'})
132 2 7 if ($current_hash ne $$state{'hash'})
150 15 0 $from_pos < $MAX_BYTES ? :
155 0 15 unless (defined $rc)
163 10 37 unless (exists $$self{'fh'})
164 0 10 unless open $$self{'fh'}, $$self{'filename'}
179 0 10 unless open my $lock_fh, ">$lock_file"