Branch Coverage

blib/lib/Lox/Resolver.pm
Criterion Covered Total %
branch 6 36 16.6


line true false branch
54 0 0 if (my $sc = $stmt->superclass)
55 0 0 if ($stmt->name->lexeme eq $sc->name->lexeme)
67 0 0 $method->name->lexeme eq 'init' ? :
71 0 0 if $stmt->superclass
86 0 0 if ($stmt->else_branch)
100 0 0 if ($stmt->value)
101 0 0 if ($self->current_function == 2)
125 2 2 if (ref $stmt_or_expr ne 'ARRAY')
161 1 0 if (my $init = $stmt->initializer)
234 1 0 unless @{$self->scopes}
237 0 0 if (exists $$scope{$name_token->lexeme})
247 1 0 unless @{$self->scopes}
253 0 0 if ($self->current_class == 4) { }
0 0 elsif ($self->current_class != 5) { }
266 0 0 if ($self->current_class == 4)
275 1 0 unless @{$self->scopes}
278 0 0 if (defined $value and $value == 0)
289 0 0 if (exists $self->scopes->[$i]{$name_token->lexeme})