Condition Coverage

blib/lib/YAML/PP/Emitter.pm
Criterion Covered Total %
condition 91 92 98.9


and 3 conditions

line !l l&&!r l&&r condition
136 44 419 91 not $props and $self->indent == 1
302 15 271 68 not $props and $self->indent == 1
592 37 2 8 $spnext and $spprev
646 699 99 99 $flow and $last->{'type'} ne "MAPVALUE"
798 75 24 $flow and $last->{'type'} ne "MAPVALUE" and $last->{'type'} ne "MAP"
682 5980 1045 5 $flow and $value =~ tr/,[]{}//
726 8958 370 158 $style == 2 and not $info->{'style'}
727 134 4 20 $value =~ tr/'// and not $value =~ tr/"//
745 8693 269 524 $props and length $value
752 1267 96 52 $props and not length $value
785 1903 1323 994 $last->{'index'} == 0 and $last->{'newline'}
802 2544 89 100 $props and not length $value
915 90 5 12 $last->{'index'} == 0 and $last->{'newline'}

or 2 conditions

line l !l condition
23 1477 766 $args{'indent'} || 2
0 2243 $args{'width'} || 80
83 138 1802 $last->{'flow'} || 0
84 811 1129 $info->{'style'} || 0
250 122 1233 $last->{'flow'} || 0
251 364 869 $info->{'style'} || 0
585 31 180 $start_with_space{$i} || 0
586 18 74 $start_with_space{$i + 1} || 0
587 12 80 $start_with_space{$i - 1} || 0
657 7357 2129 $style ||= 1

or 3 conditions

line l !l&&r !l&&!r condition
251 122 107 1126 $flow or ($info->{'style'} || 0) eq 2
605 31 101 32 $sp or $spnext
659 289 155 8686 $style == 4 or $style == 5
660 8 2 346 $value =~ / \n/ or $value =~ /\n /
10 5 341 $value =~ / \n/ or $value =~ /\n / or $value =~ /^\n/
7 1 340 $value =~ / \n/ or $value =~ /\n / or $value =~ /^\n/ or $value =~ /\n$/
721 8 8 195 length $value == 1 or substr($value, 1, 1) =~ /^\s/
784 2733 1487 3851 $last->{'type'} eq "MAP" or $last->{'type'} eq "SEQ"
792 365 120 7586 $style == 4 || $style == 5
914 32 75 95 $last->{'type'} eq "MAP" or $last->{'type'} eq "SEQ"
1030 32 211 3029 $self->{'open_ended'} or not $info->{'implicit'}