Branch Coverage

blib/lib/YAML/PP/Highlight.pm
Criterion Covered Total %
branch 29 32 90.6


line true false branch
64 2 1 unless defined $expand_tabs
79 15 6 if ($color)
85 2 1 if ($expand_tabs)
149 2 25 if ($subtokens) { }
156 1 31 defined $token->{'orig'} ? :
157 0 32 if ($token->{'name'} eq "EOL" and not length $value)
164 2 34 $_ =~ tr/\t// ? :
173 9 27 if ($token->{'name'} eq 'EOL') { }
27 0 elsif ($i < $#list) { }
174 0 9 if ($str =~ / +([\r\n]|\z)/)
179 8 19 if ($name eq "PLAIN")
182 8 17 if $next->{'name'} eq "EOL"
183 5 12 if $next->{'name'} =~ /^(WS|SPACE)$/
184 5 7 if ($next->{'name'} eq "COLON")
190 9 18 if ($next->{'name'} eq "EOL")
191 1 8 if ($str =~ / \z/ and $name =~ /^(BLOCK_SCALAR_CONTENT|WS|INDENT)$/)