line |
true |
false |
branch |
45
|
0 |
1 |
if (not $self->use_header and $self->document == 1) |
48
|
0 |
0 |
unless ref($node) =~ /^(HASH|ARRAY)$/ |
50
|
0 |
0 |
if ref $node eq 'HASH' and keys %$node == 0 |
52
|
0 |
0 |
if ref $node eq 'ARRAY' and @$node == 0 |
60
|
0 |
1 |
if ($self->use_version) |
74
|
0 |
4 |
if ($type eq 'GLOB') |
82
|
0 |
4 |
if (ref $_[0] eq 'Regexp') |
88
|
3 |
1 |
unless (ref $_[0]) |
89
|
0 |
3 |
if $self->purity |
98
|
0 |
1 |
if ref $value and not $type |
101
|
0 |
1 |
if ($self->transferred->{$node_id}) |
102
|
0 |
0 |
ref $self->transferred->{$node_id} ? : |
110
|
0 |
1 |
if ($type eq 'CODE') |
124
|
0 |
1 |
if (defined $class) |
125
|
0 |
0 |
if ($value->can('yaml_dump')) { } |
|
0 |
0 |
elsif ($type eq 'SCALAR') { } |
145
|
0 |
1 |
if (defined 'YAML'->global_object->{'blessed_map'}{$node_id}) |
154
|
0 |
1 |
if ($type eq 'REF' or $type eq 'SCALAR') { } |
|
0 |
1 |
elsif ($type eq 'GLOB') { } |
175
|
0 |
1 |
if ++$$self{'id_refcnt'}{$node_id} > 1 |
178
|
0 |
1 |
if ($type eq 'HASH') { } |
|
1 |
0 |
elsif ($type eq 'ARRAY') { } |
210
|
1 |
3 |
if ($ref) { } |
211
|
0 |
1 |
if ($ref eq 'Regexp') |
226
|
0 |
4 |
if (defined $self->transferred->{$node_id}) { } |
|
0 |
4 |
elsif ($ynode = ynode($value)) { } |
229
|
0 |
0 |
if (ref $value) { } |
230
|
0 |
0 |
defined $ynode ? : |
236
|
0 |
0 |
defined $ynode ? : |
249
|
4 |
0 |
if ($self->use_aliases) |
251
|
0 |
4 |
if ($$self{'id_refcnt'}{$node_id} > 1) |
252
|
0 |
0 |
if (defined $$self{'id_anchor'}{$node_id}) |
262
|
0 |
4 |
if ref $value and not $type |
264
|
0 |
4 |
if $type eq 'SCALAR' and $tag |
266
|
3 |
1 |
if $type eq 'SCALAR' |
268
|
0 |
1 |
if $type eq 'HASH' |
270
|
1 |
0 |
if $type eq 'ARRAY' |
280
|
0 |
0 |
if $tag |
284
|
0 |
0 |
if $@ |
285
|
0 |
0 |
if $empty_hash |
289
|
0 |
0 |
if ($context == 5 and $self->compress_series and not defined $$self{'id_anchor'}{$node_id} || $tag || $empty_hash) { } |
298
|
0 |
0 |
unless $self->headless and not $self->headless(0) |
306
|
0 |
0 |
if ($self->sort_keys == 1) { } |
|
0 |
0 |
elsif ($self->sort_keys == 2) { } |
|
0 |
0 |
elsif (ref $self->sort_keys eq 'ARRAY') { } |
307
|
0 |
0 |
if (ynode($value)) { } |
321
|
0 |
0 |
defined $order{$a} && defined $order{$b} ? : |
331
|
0 |
0 |
if (exists $$value{&VALUE}) |
333
|
0 |
0 |
if ($keys[$i] eq &VALUE) |
354
|
0 |
1 |
if $tag |
356
|
0 |
1 |
if @$value == 0 |
358
|
1 |
0 |
unless $self->headless and not $self->headless(0) |
362
|
0 |
0 |
unless ref $_ |
|
0 |
0 |
if ($self->inline_series and @$value <= $self->inline_series and not scalar grep({/\n/ unless ref $_;} @$value)) |
370
|
0 |
0 |
if $i == $#{$value;} |
392
|
0 |
0 |
unless $context == 5 |
421
|
0 |
3 |
$type == 3 ? : |
422
|
0 |
3 |
$type == 3 ? : |
423
|
0 |
3 |
$type == 3 ? : |
427
|
0 |
3 |
unless defined $_[0] |
431
|
0 |
3 |
if $_[0] eq "\aYAML\aVALUE\a" |
433
|
0 |
3 |
if $_[0] =~ /$ESCAPE_CHAR/ |
437
|
0 |
3 |
if ($_[0] =~ /\n/) |
438
|
0 |
0 |
if $self->use_block |
442
|
0 |
0 |
if $self->use_fold |
444
|
0 |
0 |
if length $_[0] <= 30 |
448
|
0 |
0 |
unless $_[0] =~ /\n\s*\S/ |
456
|
3 |
0 |
if $self->is_valid_plain($_[0]) |
460
|
0 |
0 |
if $_[0] =~ /'/ |
478
|
0 |
3 |
unless length $_[0] |
480
|
0 |
3 |
if $_[0] =~ /^[\s\{\[\~\`\'\"\!\@\#\>\|\%\&\?\*\^]/ |
481
|
0 |
3 |
if $_[0] =~ /[\{\[\]\},]/ |
482
|
0 |
3 |
if $_[0] =~ /[:\-\?]\s/ |
483
|
0 |
3 |
if $_[0] =~ /\s#/ |
484
|
0 |
3 |
if $_[0] =~ /\:(\s|$)/ |
485
|
0 |
3 |
if $_[0] =~ /[\s\|\>]$/ |
494
|
0 |
0 |
length $1 > 1 ? : |
|
0 |
0 |
length $1 ? : |
495
|
0 |
0 |
unless defined $value |
497
|
0 |
0 |
if $value =~ /^\s/ |
504
|
3 |
0 |
defined $_[0] ? : |
530
|
0 |
0 |
unless length $text |