Condition Coverage

blib/lib/YAML/Old/Dumper.pm
Criterion Covered Total %
condition 41 51 80.3


and 3 conditions

line !l l&&!r l&&r condition
46 141 1 4 not $self->use_header and $self->document == 1
51 2 0 1 ref $node eq 'HASH' and keys %$node == 0
53 0 1 1 ref $node eq 'ARRAY' and @$node == 0
99 0 503 2 ref $value and not $type
264 898 474 2 ref $value and not $type
266 474 885 13 $type eq 'SCALAR' and $tag
291 382 3 24 $context == 5 and $self->compress_series
385 6 18 $context == 5 and $self->compress_series and not defined $$self{'id_anchor'}{$node_id} || $tag || $empty_hash
300 391 0 0 $self->headless and not $self->headless(0)
323 0 0 3 defined $order{$a} && defined $order{$b}
360 52 0 1 $self->headless and not $self->headless(0)
364 49 1 3 $self->inline_series and @$value <= $self->inline_series
50 1 2 $self->inline_series and @$value <= $self->inline_series and not scalar grep({/\n/ unless ref $_;} @$value)

or 2 conditions

line l !l condition
221 0 889 $ref || 'SCALAR'
252 493 887 $$self{'id_refcnt'}{$node_id} ||= 0
416 1138 892 $_[1] || 0

or 3 conditions

line l !l&&r !l&&!r condition
156 23 8 445 $type eq 'REF' or $type eq 'SCALAR'
291 6 0 18 defined $$self{'id_anchor'}{$node_id} || $tag || $empty_hash