Branch Coverage

inc/File/Slurp.pm
Criterion Covered Total %
branch 3 92 3.2


line true false branch
19 0 1 unless (eval { do { defined 0 } })
25 0 1 unless (eval { do { defined 0 } })
31 0 1 unless (eval { do { defined 1024 } })
33 0 0 if ($^O =~ /olaris/) { }
0 0 elsif ($^O =~ /inux/) { }
0 0 elsif ($^O =~ /BSD/i) { }
88 0 0 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 0 if $args{'binmode'}
136 0 0 unless (sysopen $read_fh, $file_name, $mode)
145 0 0 unless ($size_left)
161 0 0 if (defined $read_cnt)
165 0 0 if $read_cnt == 0
169 0 0 if $blk_size
173 0 0 if $size_left <= 0
185 0 0 if $is_win32 and not $args{'binmode'}
191 0 0 if defined $sep and $sep eq ''
198 0 0 length ${$buf_ref;} ? :
0 0 if $args{'array_ref'}
205 0 0 length ${$buf_ref;} ? :
0 0 if wantarray
210 0 0 if $args{'scalar_ref'}
214 0 0 if defined wantarray
227 0 0 ref $_[0] eq 'HASH' ? :
234 0 0 if (ref $$args{'buf_ref'} eq 'SCALAR') { }
0 0 elsif (ref $_[0] eq 'SCALAR') { }
0 0 elsif (ref $_[0] eq 'ARRAY') { }
265 0 0 if (ref $file_name) { }
276 0 0 if ($$args{'atomic'})
287 0 0 if $$args{'binmode'}
288 0 0 if $$args{'append'}
289 0 0 if $$args{'no_clobber'}
296 0 0 unless (sysopen $write_fh, $file_name, $mode)
302 0 0 if $$args{'append'}
309 0 0 if ($is_win32 and not $$args{'binmode'})
313 0 0 if $data_is_ref
333 0 0 unless (defined $write_cnt)
350 0 0 unless $no_truncate
357 0 0 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