Branch Coverage

blib/lib/YAML/PP/Render.pm
Criterion Covered Total %
branch 38 58 65.5


line true false branch
8 0 42 $ENV{'YAML_PP_TRACE'} ? :
21 0 230 if ($value eq "")
22 0 0 if ($first) { }
0 0 elsif ($last) { }
26 0 0 if $addspace
35 110 120 if $addspace
37 230 0 if ($style eq "\"")
38 8 222 if ($line->{'orig'} =~ /\\$/)
53 76 116 if ($block_type eq ">")
56 49 143 if ($chomp eq '+') { }
33 110 elsif ($chomp eq '-') { }
64 143 49 unless ($keep)
67 142 0 if $lines->[-1] ne ""
71 76 116 if ($folded) { }
75 39 37 if ($keep)
84 18 46 $line =~ /\A[ \t]/ ? :
12 64 $line eq '' ? :
90 2 74 if ($prev eq 'MORE' and $type eq 'EMPTY') { }
0 74 elsif ($prev eq 'CONTENT') { }
10 64 elsif ($prev eq 'START' and $type eq 'EMPTY') { }
0 128 elsif ($prev eq 'EMPTY' and $type ne 'CONTENT') { }
94 0 0 if ($type ne 'CONTENT') { }
0 0 elsif ($type eq 'CONTENT') { }
111 9 67 if ($type eq "MORE" and $i < $#$lines)
117 39 37 if ($keep)
120 47 29 if @$lines and not $trim
125 190 23 if $i != $#$lines or not $trim
137 0 0 if (not $start) { }
138 0 0 if ($line eq '') { }