Branch Coverage

blib/lib/Pistachio/Tokenizer.pm
Criterion Covered Total %
branch 27 32 84.3


line true false branch
24 0 4 unless my $lang = ref $_[0] eq 'Pistachio::Language' && $_[0]
43 1 23 if $this->_finished
55 1 23 $$this[3] - $$this[2] < 1 ? :
67 40 20 (shift())->[1] > 0 ? :
73 41 0 $$this[3] - $$this[1] > 0 ? :
80 0 28 unless $this->_has_prev
89 0 35 unless $this->_has_next
99 20 20 unless $_->whitespace
114 352 39 unless $token->match($rule->type, $rule->value)
116 32 7 if ($rule->prec)
117 20 12 unless $this->_has_prev
118 10 2 unless $this->_juxtaposed($rule->prec, '_prev')
121 6 3 if ($rule->succ)
122 0 6 unless $this->_has_next
123 4 2 unless $this->_juxtaposed($rule->succ, '_next')
128 4 19 if $into