Branch Coverage

blib/lib/Lox/Parser.pm
Criterion Covered Total %
branch 30 98 30.6


line true false branch
37 0 2 if ($self->check(27) and $self->check(19, 1)) { }
0 2 elsif ($self->match(24)) { }
1 1 elsif ($self->match(37)) { }
47 2 0 unless ($@)
59 0 0 if ($self->match(17))
79 0 1 if ($self->match(28))
82 0 1 if ($self->match(23))
85 0 1 if ($self->match(29))
88 0 1 if ($self->match(38))
91 0 1 if ($self->match(2))
94 1 0 if ($self->match(32))
97 0 0 if ($self->match(33))
108 0 0 if ($self->match(8)) { }
0 0 elsif ($self->match(37)) { }
119 0 0 unless ($self->check(8))
125 0 0 unless ($self->check(1))
132 0 0 if ($increment)
138 0 0 if ($initializer)
154 0 0 if ($self->match(25))
167 0 0 unless $self->{'looping'}
176 1 0 if ($self->match(13))
228 0 0 unless ($self->check(1))
230 0 0 if (@parameters >= 255)
267 0 0 unless $self->{'functioning'}
268 0 0 $self->check(8) ? :
276 0 2 if ($self->match(13))
281 0 0 if (ref $expr eq 'Lox::Expr::Variable') { }
0 0 elsif (ref $expr eq 'Lox::Expr::Get') { }
380 0 2 if ($self->match(11, 6))
394 0 2 if ($self->match(0)) { }
0 2 elsif ($self->match(5)) { }
413 0 0 unless ($self->check(1))
415 0 0 if @args >= 255
430 0 2 if ($self->match(26)) { }
0 2 elsif ($self->match(36)) { }
0 2 elsif ($self->match(30)) { }
0 2 elsif ($self->match(21)) { }
1 1 elsif ($self->match(20)) { }
0 1 elsif ($self->match(34)) { }
0 1 elsif ($self->match(35)) { }
1 0 elsif ($self->match(19)) { }
0 0 elsif ($self->match(0)) { }
0 0 elsif ($self->match(27)) { }
471 5 53 if ($self->check($t))
481 3 0 if $self->check($type)
487 0 63 $self->is_at_end ? :
492 8 0 unless $self->is_at_end
518 0 0 if $self->previous->{'type'} == 8
520 0 0 if grep {$next == $_;} 24, 27, 37, 28, 29, 38, 32, 33