Branch Coverage

blib/lib/File/Tail/App.pm
Criterion Covered Total %
branch 0 70 0.0


line true false branch
19 0 0 unless $seek_to =~ /^\d+$/
27 0 0 unless $$args_ref{'line_handler'}
28 0 0 if ref $$args_ref{'line_handler'} ne 'CODE'
31 0 0 unless defined $$args_ref{'verbose'}
36 0 0 defined $lastrun_file ? :
43 0 0 unless exists $$args_ref{'seek_on_zero'}
44 0 0 if (exists $$args_ref{'seek_to'} and defined $$args_ref{'seek_to'})
45 0 0 if ($$args_ref{'seek_to'} eq '0' and $$args_ref{'seek_on_zero'}) { }
0 0 elsif ($$args_ref{'seek_to'} =~ /^\d+$/) { }
56 0 0 if $previous_position ne $start_size and $previous_position ne ''
62 0 0 if (-s $$tail{'input'} < $start_size) { }
0 0 elsif ($do_md5_check and $md5_chk ne _get_md5_info($tail, $md5_len, $do_md5_check)) { }
63 0 0 if $$args_ref{'verbose'}
71 0 0 if $$args_ref{'verbose'}
76 0 0 if ($replaced)
79 0 0 $stat[7] < 42 ? :
84 0 0 if ($stat[1] ne $file_ident and $file_ident)
85 0 0 if $$args_ref{'verbose'}
90 0 0 if ($start_handle ne $$tail{'handle'})
92 0 0 if $$args_ref{'verbose'}
98 0 0 if defined $lastrun_file
105 0 0 if $$args_ref{'verbose'} > 1
113 0 0 if ref $args_ref ne 'HASH'
116 0 0 unless exists $$args_ref{'new'}
117 0 0 if ref $$args_ref{'new'} ne 'ARRAY'
119 0 0 unless my $tail = 'File::Tail'->new(@{$$args_ref{'new'};})
138 0 0 $stat[7] < 42 ? :
142 0 0 if (-e $cur_file)
143 0 0 unless open my $curat_fh, '<', $cur_file
149 0 0 if $logged_ident ne $cur_tail_ident
152 0 0 if ($do_md5_check)
153 0 0 unless defined $md5_len and $md5_len
154 0 0 unless defined $md5_chk and $md5_chk
165 0 0 unless open my $curpos_fh, '>', $cur_file
174 0 0 unless $do_md5_check