Condition Coverage

blib/lib/File/Serialize.pm
Criterion Covered Total %
condition 30 43 69.7


and 3 conditions

line !l l&&!r l&&r condition
35 14 16 0 $options and not ref $options
49 29 0 0 $options->{'add_extension'} and $file ne '-'
29 0 0 $options->{'add_extension'} and $file ne '-' and ref $file ne 'SCALAR'
84 36 0 0 $options->{'add_extension'} and $file ne '-'
36 0 0 $options->{'add_extension'} and $file ne '-' and ref $file ne 'SCALAR'

or 2 conditions

line l !l condition
39 1 29 $options->{'utf8'} //= 1
40 0 30 $options->{'allow_nonref'} //= 1
41 7 23 $options->{'pretty'} //= 1
42 15 15 $options->{'canonical'} //= 1
76 0 36 $options->{'utf8'} //= 1
77 1 35 $options->{'allow_nonref'} //= 1
165 10 56 $options->{'serializers'} || ['File::Serialize'->_all_operative_serializers]
170 65 1 &first(sub { $_->does_extension($format); } , @$serializers) || die("no serializer found for $format")

or 3 conditions

line l !l&&r !l&&!r condition
44 0 4 26 $file =~ /^-/u or ref $file eq 'SCALAR'
73 0 9 27 $file eq '-' or ref $file eq 'SCALAR'
106 6 2 5 not ref $step or ref($step) =~ /Path::Tiny/u
168 13 52 1 $options->{'format'} || ((ref $self ? $self->basename : $self) =~ /\.(\w+)$/u)[0]