Condition Coverage

blib/lib/File/Serialize.pm
Criterion Covered Total %
condition 27 43 62.7


and 3 conditions

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

or 2 conditions

line l !l condition
39 1 24 $options->{'utf8'} //= 1
40 0 25 $options->{'allow_nonref'} //= 1
41 7 18 $options->{'pretty'} //= 1
42 15 10 $options->{'canonical'} //= 1
76 0 25 $options->{'utf8'} //= 1
77 1 24 $options->{'allow_nonref'} //= 1
165 8 42 $options->{'serializers'} || ['File::Serialize'->_all_operative_serializers]
170 49 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 0 25 $file =~ /^-/u or ref $file eq 'SCALAR'
73 0 0 25 $file eq '-' or ref $file eq 'SCALAR'
106 6 2 5 not ref $step or ref($step) =~ /Path::Tiny/u
168 0 49 1 $options->{'format'} || ((ref $self ? $self->basename : $self) =~ /\.(\w+)$/u)[0]