Condition Coverage

blib/lib/YAML/Dumper.pm
Criterion Covered Total %
condition 46 57 80.7


and 3 conditions

line !l l&&!r l&&r condition
49 161 1 4 not $self->use_header and $self->document == 1
54 2 0 1 ref $node eq 'HASH' and keys %$node == 0
56 0 1 1 ref $node eq 'ARRAY' and @$node == 0
102 0 532 2 ref $value and not $type
267 968 500 2 ref $value and not $type
269 500 952 16 $type eq 'SCALAR' and $tag
294 403 3 26 $context == 5 and $self->compress_series
406 6 20 $context == 5 and $self->compress_series and not defined $self->{'id_anchor'}{$node_id} || $tag || $empty_hash
303 412 0 0 $self->headless and not $self->headless(0)
328 0 0 2 defined $order{$a} && defined $order{$b}
363 55 0 1 $self->headless and not $self->headless(0)
367 52 1 3 $self->inline_series and @$value <= $self->inline_series
53 1 2 $self->inline_series and @$value <= $self->inline_series and not scalar grep({/\n/ unless ref $_;} @$value)
487 2049 0 66 B::svref_2object(\$_[0])->FLAGS & 12288 && 0 + $_[0] eq $_[0]
500 2032 4 6 $self->quote_numeric_strings and &Scalar::Util::looks_like_number($_[0])

or 2 conditions

line l !l condition
224 0 956 $ref || 'SCALAR'
255 521 955 $self->{'id_refcnt'}{$node_id} ||= 0
419 1217 965 $_[1] || 0

or 3 conditions

line l !l&&r !l&&!r condition
159 23 8 470 $type eq 'REF' or $type eq 'SCALAR'
294 6 0 20 defined $self->{'id_anchor'}{$node_id} || $tag || $empty_hash