Branch Coverage

blib/lib/YAML/PP/Render.pm
Criterion Covered Total %
branch 56 58 96.5


line true false branch
8 0 52 $ENV{'YAML_PP_TRACE'} ? :
21 301 1033 if ($value eq "")
22 66 235 if ($first) { }
66 169 elsif ($last) { }
26 42 24 if $addspace
35 393 640 if $addspace
37 925 108 if ($style eq "\"")
38 82 843 if ($line->{'orig'} =~ /\\$/)
53 532 1180 if ($block_type eq ">")
56 189 1523 if ($chomp eq '+') { }
305 1218 elsif ($chomp eq '-') { }
64 1523 189 unless ($keep)
67 1493 222 if $lines->[-1] ne ""
71 532 1180 if ($folded) { }
75 39 493 if ($keep)
84 115 736 $line =~ /\A[ \t]/ ? :
332 851 $line eq '' ? :
90 30 1153 if ($prev eq 'MORE' and $type eq 'EMPTY') { }
288 865 elsif ($prev eq 'CONTENT') { }
54 811 elsif ($prev eq 'START' and $type eq 'EMPTY') { }
126 1248 elsif ($prev eq 'EMPTY' and $type ne 'CONTENT') { }
94 142 146 if ($type ne 'CONTENT') { }
146 0 elsif ($type eq 'CONTENT') { }
111 98 1085 if ($type eq "MORE" and $i < $lines->$#*)
117 39 493 if ($keep)
120 429 103 if @$lines and not $trim
125 1876 220 if $i != $lines->$#* or not $trim
137 297 267 if (not $start) { }
138 25 272 if ($line eq '') { }