blib/lib/AI/Pathfinding/AStar.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 9 | 16 | 56.2 |
line | true | false | branch |
---|---|---|---|
17 | 0 | 0 | unless $self->can('getSurrounding') |
30 | 0 | 38 | if defined $max and ++$n == $max |
42 | 89 | 118 | if exists $$nodes{$surr_id} and not $$nodes{$surr_id}{'inopen'} |
45 | 45 | 73 | if (not exists $$nodes{$surr_id}) { } |
60 | 26 | 47 | if ($possG < $currG) |
76 | 2 | 0 | exists $$nodes{$target} ? : |
106 | 0 | 2 | wantarray ? : |
115 | 0 | 0 | if (defined $state) { } |