Condition Coverage

blib/lib/File/Slurp.pm
Criterion Covered Total %
condition 39 51 76.4


and 3 conditions

line !l l&&!r l&&r condition
105 10 30 158 -f $fh && -s _
108 5 153 36 $read and $pos < $size
119 194 0 4 $opts->{'_is_data'} and $opts->{'_data_tell'}
122 33 165 0 ${$buf_ref;} and $is_win32
198 0 0 ${$buf_ref;} and $is_win32 and not $opts->{'binmode'}
130 0 34 16 defined $sep and $sep eq ''
277 0 13 17 not defined $opts->{'perms'} and -e $file_name
13 0 17 not defined $opts->{'perms'} and -e $file_name and -f _
330 141 14 16 $opts->{'atomic'} and not rename($file_name, $orig_filename)
382 7 1 6 $_ ne 'err_mode' && $_ ne 'binmode'
441 7 1 6 $_ ne 'err_mode' && $_ ne 'binmode'
496 6 0 0 $_ ne 'err_mode' && $_ ne 'binmode'
557 6 6 97 $_ ne '.' && $_ ne '..'

or 2 conditions

line l !l condition
102 12 186 $opts->{'buf_ref'} || \$buf
104 0 198 $opts->{'blk_size'} || 1048576
588 88 6 $opts->{'err_mode'} or 'croak'

or 3 conditions

line l !l&&r !l&&!r condition
127 32 18 148 $want_array or $opts->{'array_ref'}
174 0 0 3 $@ or not overload::Overloaded($handle)