blib/lib/Lox/Scanner.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 4 | 20 | 20.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
35 | 0 | 2 | 0 | @{$self->{'tokens'}} and $self->{'tokens'}[-1]->type eq 40 |
119 | 0 | 0 | 0 | not $self->is_at_end and $self->peek eq $expected_char |
246 | 0 | 0 | 0 | $self->peek eq '.' and $self->peek(2) =~ /\d/ |
258 | 0 | 1 | 3 | not $self->is_at_end and $self->peek ne '"' |
317 | 0 | 0 | 0 | not $self->is_at_end and $self->peek ne "\n" |
line | l | !l | condition |
---|---|---|---|
142 | 0 | 19 | $length || 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
359 | 0 | 0 | 0 | $msg //= "unexpected character: $c" |