Branch Coverage

blib/lib/PPI/Token/Magic.pm
Criterion Covered Total %
branch 32 34 94.1


line true false branch
63 945 595 if ($c =~ /^ \$ .* [ \w : \$ \{ ] $/x) { }
18 577 elsif ($c =~ /^%\^/) { }
65 92 853 if ($c =~ /^(\$(?:\_[\w:]|::))/ or $c =~ /^\$\'[\w]/)
69 2 90 if ($c =~ /^\$\'\d$/)
81 80 773 if ($c =~ /^\$\$\w/)
91 2 771 if ($c eq "\$\${")
95 1 1 if ($t->{'line'} =~ /$PPI::Token::Magic::CURLY_SYMBOL/cg)
106 32 740 if ($c eq "\$#\$" or $c eq "\$#{")
113 98 642 if ($c =~ /^(\$\#)\w/)
119 361 281 if ($c =~ /^\$\^\w+$/o)
122 33 328 if ($PPI::Token::Magic::MAGIC{$c} and not $next && $next =~ /\w/) { }
131 0 314 if ($c =~ /^\$\#\{/)
141 0 18 if $c eq "%^"
143 8 10 if ($PPI::Token::Magic::MAGIC{$c}) { }
154 42 867 if ($PPI::Token::Magic::MAGIC{$c}) { }
160 7 860 if ($t->{'line'} =~ /($PPI::Token::Magic::CURLY_SYMBOL)/cg) { }
3 1714 elsif ($c =~ /^\$\d+$/ and $t->{'line'} =~ /\G(\d+)/cg) { }