Branch Coverage

inc/File/Slurp.pm
Criterion Covered Total %
branch 34 92 36.9


line true false branch
19 0 4 unless (eval { do { defined 0 } })
25 0 4 unless (eval { do { defined 0 } })
31 0 4 unless (eval { do { defined 1024 } })
33 0 0 if ($^O =~ /olaris/) { }
0 0 elsif ($^O =~ /inux/) { }
0 0 elsif ($^O =~ /BSD/i) { }
88 0 4 if (ref $file_name) { }
107 0 0 if ($@)
116 0 0 if (B::svref_2object($read_fh)->IO->IoFLAGS & 16)
120 0 0 unless sysseek $read_fh, tell $read_fh, 0
129 0 4 if $args{'binmode'}
136 0 4 unless (sysopen $read_fh, $file_name, $mode)
145 2 2 unless ($size_left)
161 4 0 if (defined $read_cnt)
165 2 2 if $read_cnt == 0
169 0 2 if $blk_size
173 2 0 if $size_left <= 0
185 0 4 if $is_win32 and not $args{'binmode'}
191 0 4 if defined $sep and $sep eq ''
198 0 0 length ${$buf_ref;} ? :
0 4 if $args{'array_ref'}
205 0 0 length ${$buf_ref;} ? :
0 4 if wantarray
210 0 4 if $args{'scalar_ref'}
214 4 0 if defined wantarray
227 0 6 ref $_[0] eq 'HASH' ? :
234 0 6 if (ref $$args{'buf_ref'} eq 'SCALAR') { }
0 6 elsif (ref $_[0] eq 'SCALAR') { }
0 6 elsif (ref $_[0] eq 'ARRAY') { }
265 0 6 if (ref $file_name) { }
276 0 6 if ($$args{'atomic'})
287 0 6 if $$args{'binmode'}
288 0 6 if $$args{'append'}
289 0 6 if $$args{'no_clobber'}
296 0 6 unless (sysopen $write_fh, $file_name, $mode)
302 0 6 if $$args{'append'}
309 0 6 if ($is_win32 and not $$args{'binmode'})
313 0 0 if $data_is_ref
333 0 6 unless (defined $write_cnt)
350 6 0 unless $no_truncate
357 0 6 if $$args{'atomic'}
375 0 0 if (ref $args eq 'HASH') { }
406 0 0 unless (opendir DIRH, $dir)
414 0 0 unless $args{'keep_dot_dot'}
417 0 0 if wantarray
446 0 0 unless $func