Branch Coverage

blib/lib/File/Serialize.pm
Criterion Covered Total %
branch 32 46 69.5


line true false branch
33 0 30 if $options and not ref $options
35 14 16 unless $options
30 0 if $global
42 26 4 unless $file =~ /^-/u or ref $file eq 'SCALAR'
47 0 0 if $options->{'add_extension'} and $file ne '-' and ref $file ne 'SCALAR'
50 28 1 $options->{'utf8'} ? :
54 0 29 if $file eq '-'
56 4 25 if (ref $file eq 'SCALAR') { }
71 27 9 unless $file eq '-' or ref $file eq 'SCALAR'
73 22 14 unless $options
36 0 if $global
82 0 0 if $options->{'add_extension'} and $file ne '-' and ref $file ne 'SCALAR'
85 9 27 ref $file eq 'SCALAR' ? :
0 36 $file =~ /^-/u ? :
101 11 1 ref $in ? :
104 8 14 if (ref $step eq 'CODE') { }
1 13 elsif (ref $step eq 'ARRAY') { }
8 5 elsif (not ref $step or ref($step) =~ /Path::Tiny/u) { }
4 1 elsif (ref $step eq 'HASH') { }
1 0 elsif (ref $step eq 'SCALAR') { }
109 0 1 if @chain
116 0 8 unless @chain <= 1
144 0 0 unless $b->precedence <=> $a->precedence