| line |
true |
false |
branch |
|
56
|
4 |
45 |
if (ref ${$ref;} eq 'ARRAY') { } |
|
|
43 |
2 |
elsif (ref ${$ref;} eq 'HASH') { } |
|
|
1 |
1 |
elsif (&is_number(${$ref;})) { } |
|
58
|
3 |
10 |
if (ref ${$ref;}->[$_]) { } |
|
|
4 |
6 |
elsif (&readonly(${$ref;}->[$_])) { } |
|
|
3 |
3 |
elsif (&is_number(${$ref;}->[$_])) { } |
|
61
|
2 |
2 |
${$ref;}->[$_] ? : |
|
68
|
28 |
89 |
if (ref ${$ref;}->{$_}) { } |
|
|
4 |
85 |
elsif (&readonly(${$ref;}->{$_})) { } |
|
|
19 |
66 |
elsif (&is_number(${$ref;}->{$_})) { } |
|
71
|
2 |
2 |
delete ${$ref;}->{$_} ? : |
|
95
|
9 |
0 |
if $modern_yaml_xs |
|
97
|
9 |
0 |
if ($modern_yaml_xs) |
|
98
|
9 |
0 |
if ref \1 eq 'JSON::PP::Boolean' |
|
109
|
0 |
0 |
if (ref ${$ref;} eq 'ARRAY') { } |
|
|
0 |
0 |
elsif (ref ${$ref;} eq 'HASH') { } |
|
|
0 |
0 |
elsif (ref ${$ref;} eq $bool_type) { } |
|
111
|
0 |
0 |
if (ref ${$ref;}->[$_]) { } |
|
|
0 |
0 |
elsif (ref ${$ref;}->[$_] eq $bool_type) { } |
|
114
|
0 |
0 |
${$ref;}->[$_] ? : |
|
119
|
0 |
0 |
if (ref ${$ref;}->{$_}) { } |
|
|
0 |
0 |
elsif (ref ${$ref;}->{$_} eq $bool_type) { } |
|
122
|
0 |
0 |
${$ref;}->{$_} ? : |
|
126
|
0 |
0 |
${$ref;} ? : |
|
137
|
333 |
19 |
if ($format eq 'JSON') { } |
|
|
18 |
1 |
elsif ($format eq 'YAML') { } |
|
|
1 |
0 |
elsif ($format eq 'RAW') { } |
|
138
|
333 |
0 |
unless $opts |
|
153
|
4 |
348 |
if $@ |
|
161
|
0 |
124 |
if $uri eq '-' |
|
163
|
77 |
47 |
unless defined $fmt |
|
166
|
40 |
84 |
if (ref $uri eq 'GLOB') { } |
|
176
|
0 |
84 |
unless open my $fh, '>', $file |
|
185
|
125 |
12 |
if ($format eq 'JSON' or $format eq 'RAW' and ref $data) { } |
|
|
9 |
3 |
elsif ($format eq 'YAML') { } |
|
|
3 |
0 |
elsif ($format eq 'RAW') { } |
|
186
|
78 |
47 |
unless $opts |
|
202
|
0 |
137 |
if $@ |
|
209
|
403 |
1 |
if (@names and @names > 1) |
|
211
|
1 |
402 |
if $ext eq 'YML' or $ext eq 'YAML' |
|
220
|
0 |
347 |
if $uri eq '-' |
|
222
|
327 |
18 |
unless defined $fmt |
|
231
|
0 |
347 |
if (ref $uri eq 'GLOB') { } |
|
234
|
2 |
345 |
unless open my $fh, '<', $uri |