Branch Coverage

blib/lib/Parse/EBNF/Token.pm
Criterion Covered Total %
branch 30 36 83.3


line true false branch
13 30 21 unless $$self{'type'} eq 'list'
31 2 29 if $$token{'type'} eq 'alt'
34 19 2 unless $alts
51 2 4 if ($$token{'type'} eq 'alt') { }
72 28 25 unless $$self{'type'} eq 'list' or $$self{'type'} eq 'alternation'
92 3 30 if ($$token{'type'} =~ /^rep (.*)$/) { }
100 0 3 unless (defined $subject)
125 28 25 if (defined $$self{'tokens'})
136 23 30 if ($$self{'type'} eq 'list')
137 21 2 if (scalar @{$$self{'tokens'};} == 1)
156 7 25 if (defined $$self{'tokens'})
162 28 4 unless $$self{'type'} eq 'alternation' or $$self{'type'} eq 'list'
170 2 3 if $$token{'type'} eq 'literal'
171 0 3 if $$token{'type'} eq 'rx'
184 2 0 if ($$token{'type'} eq 'literal')
188 0 2 if ($$token{'type'} eq 'rx')
194 0 1 if $$self{'type'} eq 'list'
195 1 0 if $$self{'type'} eq 'alternation'