Condition Coverage

blib/lib/YAML/PP/Emitter.pm
Criterion Covered Total %
condition 88 92 95.6


and 3 conditions

line !l l&&!r l&&r condition
136 24 156 31 not $props and $self->indent == 1
302 10 105 26 not $props and $self->indent == 1
592 4 1 7 $spnext and $spprev
646 361 58 73 $flow and $last->{'type'} ne "MAPVALUE"
419 53 20 $flow and $last->{'type'} ne "MAPVALUE" and $last->{'type'} ne "MAP"
682 1748 96 0 $flow and $value =~ tr/,[]{}//
726 2550 218 129 $style == 2 and not $info->{'style'}
727 119 4 6 $value =~ tr/'// and not $value =~ tr/"//
745 2647 180 70 $props and length $value
752 194 20 36 $props and not length $value
785 417 383 267 $last->{'index'} == 0 and $last->{'newline'}
802 537 1 72 $props and not length $value
915 65 2 0 $last->{'index'} == 0 and $last->{'newline'}

or 2 conditions

line l !l condition
23 96 186 $args{'indent'} || 2
0 282 $args{'width'} || 80
83 31 409 $last->{'flow'} || 0
84 263 177 $info->{'style'} || 0
250 27 417 $last->{'flow'} || 0
251 144 273 $info->{'style'} || 0
585 18 25 $start_with_space{$i} || 0
586 13 6 $start_with_space{$i + 1} || 0
587 7 12 $start_with_space{$i - 1} || 0
657 1733 1164 $style ||= 1

or 3 conditions

line l !l&&r !l&&!r condition
251 27 25 392 $flow or ($info->{'style'} || 0) eq 2
605 18 13 0 $sp or $spnext
659 37 32 2598 $style == 4 or $style == 5
660 8 2 220 $value =~ / \n/ or $value =~ /\n /
10 3 217 $value =~ / \n/ or $value =~ /\n / or $value =~ /^\n/
5 1 216 $value =~ / \n/ or $value =~ /\n / or $value =~ /^\n/ or $value =~ /\n$/
721 8 8 81 length $value == 1 or substr($value, 1, 1) =~ /^\s/
784 610 457 1580 $last->{'type'} eq "MAP" or $last->{'type'} eq "SEQ"
792 87 25 2535 $style == 4 || $style == 5
914 14 53 24 $last->{'type'} eq "MAP" or $last->{'type'} eq "SEQ"
1030 12 114 1318 $self->{'open_ended'} or not $info->{'implicit'}