Branch Coverage

inc/File/Slurp.pm
Criterion Covered Total %
branch 17 92 18.4


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 6 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
135 0 6 unless (sysopen $read_fh, $file_name, $mode)
140 0 6 if $args{'binmode'}
146 0 6 unless ($size_left)
162 6 0 if (defined $read_cnt)
166 0 6 if $read_cnt == 0
170 0 6 if $blk_size
174 6 0 if $size_left <= 0
186 0 6 if $is_win32 and not $args{'binmode'}
192 0 6 if defined $sep and $sep eq ''
199 0 0 length ${$buf_ref;} ? :
0 6 if $args{'array_ref'}
206 0 0 length ${$buf_ref;} ? :
0 6 if wantarray
211 0 6 if $args{'scalar_ref'}
215 6 0 if defined wantarray
228 0 0 ref $_[0] eq 'HASH' ? :
235 0 0 if (ref $$args{'buf_ref'} eq 'SCALAR') { }
0 0 elsif (ref $_[0] eq 'SCALAR') { }
0 0 elsif (ref $_[0] eq 'ARRAY') { }
266 0 0 if (ref $file_name) { }
277 0 0 if ($$args{'atomic'})
288 0 0 if $$args{'append'}
289 0 0 if $$args{'no_clobber'}
296 0 0 unless (sysopen $write_fh, $file_name, $mode)
301 0 0 if $$args{'binmode'}
304 0 0 if $$args{'append'}
311 0 0 if ($is_win32 and not $$args{'binmode'})
315 0 0 if $data_is_ref
335 0 0 unless (defined $write_cnt)
352 0 0 unless $no_truncate
359 0 0 if $$args{'atomic'}
377 0 0 if (ref $args eq 'HASH') { }
408 0 0 unless (opendir DIRH, $dir)
416 0 0 unless $args{'keep_dot_dot'}
419 0 0 if wantarray
448 0 0 unless $func