Branch Coverage

blib/lib/Perlito/Emitter/Token.pm
Criterion Covered Total %
branch 9 32 28.1


line true false branch
22 0 9 if ($str eq '\\')
25 0 9 if ($str eq q['])
28 9 0 if ($len) { }
49 0 4 if ($$self{'quant'} eq '' and $$self{'greedy'} eq '')
52 4 0 if ($$self{'quant'} eq '+' and $$self{'greedy'} eq '')
56 0 0 if ($$self{'quant'} eq '*' and $$self{'greedy'} eq '')
60 0 0 if ($$self{'quant'} eq '?' and $$self{'greedy'} eq '')
111 0 2 1 + index($$self{'metasyntax'}, '.') ? :
113 0 2 if ($$self{'captures'} == 1) { }
117 0 2 if ($$self{'captures'} > 1) { }
128 0 2 if ($$self{'captures'} > 0)
193 0 0 if ($char eq 'n')
196 0 0 if ($char eq 'N')
199 0 0 if ($char eq 'd')
202 0 0 if ($char eq 's')
205 0 0 if ($char eq 't')