Branch Coverage

blib/lib/File/Serialize.pm
Criterion Covered Total %
branch 33 48 68.7


line true false branch
35 0 30 if $options and not ref $options
37 14 16 unless $options
30 0 if $global
44 26 4 unless $file =~ /^-/u or ref $file eq 'SCALAR'
49 0 0 if $options->{'add_extension'} and $file ne '-' and ref $file ne 'SCALAR'
52 28 1 $options->{'utf8'} ? :
56 0 29 if $file eq '-'
58 4 25 if (ref $file eq 'SCALAR') { }
73 27 9 unless $file eq '-' or ref $file eq 'SCALAR'
75 22 14 unless $options
36 0 if $global
84 0 0 if $options->{'add_extension'} and $file ne '-' and ref $file ne 'SCALAR'
87 9 27 ref $file eq 'SCALAR' ? :
0 36 $file =~ /^-/u ? :
103 11 1 ref $in ? :
106 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') { }
108 0 8 if ($implicit_transform) { }
116 0 1 if @chain
123 0 8 unless @chain <= 1
151 0 0 unless $b->precedence <=> $a->precedence