| line |
true |
false |
branch |
|
15
|
0 |
42 |
$ENV{'YAML_PP_LOAD_DEBUG'} || $ENV{'YAML_PP_LOAD_TRACE'} ? :
|
|
16
|
0 |
42 |
$ENV{'YAML_PP_LOAD_TRACE'} ? :
|
|
25
|
443 |
313 |
unless (defined $duplicate_keys)
|
|
30
|
1 |
755 |
if ($preserve == 1)
|
|
35
|
1 |
755 |
unless $cyclic_refs{$cyclic_refs}
|
|
38
|
0 |
755 |
if (keys %args)
|
|
99
|
34 |
2281 |
if ($event->{'version_directive'})
|
|
102
|
22 |
12 |
if ($self->{'schemas'}{$version}) { }
|
|
119
|
0 |
2287 |
unless $last->{'type'} eq "document"
|
|
120
|
0 |
2287 |
if (@$stack)
|
|
124
|
3 |
2284 |
if ($event->{'implicit'} and $self->require_footer)
|
|
147
|
24 |
1289 |
if ($preserve_order || $preserve_style || $preserve_alias and not tied %$data)
|
|
150
|
15 |
1298 |
if ($preserve_style)
|
|
156
|
77 |
1236 |
if (defined(my $anchor = $event->{'anchor'}))
|
|
157
|
6 |
71 |
if ($preserve_alias)
|
|
159
|
5 |
1 |
unless (exists $self->anchors->{$anchor})
|
|
174
|
0 |
1301 |
unless $last->{'type'} eq "mapping"
|
|
180
|
6 |
2518 |
if (ref $key eq 'YAML::PP::Type::MergeKey') { }
|
|
182
|
1 |
5 |
if ((builtin::reftype($merge) || '') eq 'HASH') { }
|
|
|
4 |
1 |
elsif ((builtin::reftype($merge) || '') eq 'ARRAY') { }
|
|
187
|
5 |
2 |
if ((builtin::reftype($item) || '') eq 'HASH') { }
|
|
205
|
8 |
1 |
unless (exists $$data->{$key})
|
|
227
|
73 |
1213 |
if (defined(my $anchor = $last->{'event'}{'anchor'}))
|
|
247
|
9 |
1204 |
if ($preserve_style or $preserve_alias and not tied @$data)
|
|
254
|
30 |
1183 |
if (defined(my $anchor = $event->{'anchor'}))
|
|
255
|
6 |
24 |
if ($preserve_alias)
|
|
257
|
5 |
1 |
unless (exists $self->anchors->{$anchor})
|
|
270
|
0 |
1205 |
unless $last->{'type'} eq "sequence"
|
|
279
|
30 |
1175 |
if (defined(my $anchor = $last->{'event'}{'anchor'}))
|
|
297
|
83 |
7569 |
if ($preserve_style || $preserve_alias and not ref $value)
|
|
302
|
17 |
66 |
if ($preserve_style)
|
|
305
|
6 |
77 |
if ($preserve_alias and defined $event->{'anchor'})
|
|
307
|
5 |
1 |
unless (exists $self->anchors->{$anchor})
|
|
314
|
185 |
7467 |
if (defined(my $name = $event->{'anchor'}))
|
|
324
|
144 |
1 |
if (my $anchor = $self->anchors->{$name}) { }
|
|
327
|
9 |
135 |
unless ($anchor->{'finished'})
|
|
329
|
4 |
5 |
if ($cyclic_refs ne "allow")
|
|
330
|
2 |
2 |
if ($cyclic_refs eq "fatal")
|
|
333
|
1 |
1 |
if ($cyclic_refs eq 'warn') { }
|
|
|
1 |
0 |
elsif ($cyclic_refs eq 'ignore') { }
|
|
353
|
50 |
0 |
if ref $data eq "YAML::PP::Preserve::Scalar" and $self->preserve_scalar_style || $self->preserve_alias
|