blib/lib/File/Serialize.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 30 | 43 | 69.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
33 | 14 | 16 | 0 | $options and not ref $options |
47 | 29 | 0 | 0 | $options->{'add_extension'} and $file ne '-' |
29 | 0 | 0 | $options->{'add_extension'} and $file ne '-' and ref $file ne 'SCALAR' | |
82 | 36 | 0 | 0 | $options->{'add_extension'} and $file ne '-' |
36 | 0 | 0 | $options->{'add_extension'} and $file ne '-' and ref $file ne 'SCALAR' |
line | l | !l | condition |
---|---|---|---|
37 | 1 | 29 | $options->{'utf8'} //= 1 |
38 | 0 | 30 | $options->{'allow_nonref'} //= 1 |
39 | 7 | 23 | $options->{'pretty'} //= 1 |
40 | 15 | 15 | $options->{'canonical'} //= 1 |
74 | 0 | 36 | $options->{'utf8'} //= 1 |
75 | 1 | 35 | $options->{'allow_nonref'} //= 1 |
158 | 10 | 56 | $options->{'serializers'} || ['File::Serialize'->_all_operative_serializers] |
163 | 65 | 1 | &first(sub { $_->does_extension($format); } , @$serializers) || die("no serializer found for $format") |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
42 | 0 | 4 | 26 | $file =~ /^-/u or ref $file eq 'SCALAR' |
71 | 0 | 9 | 27 | $file eq '-' or ref $file eq 'SCALAR' |
104 | 6 | 2 | 5 | not ref $step or ref($step) =~ /Path::Tiny/u |
161 | 13 | 52 | 1 | $options->{'format'} || ((ref $self ? $self->basename : $self) =~ /\.(\w+)$/u)[0] |