blib/lib/Traveller/Util.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 17 | 18 | 94.4 |
line | true | false | branch |
---|---|---|---|
29 | 3655 | 88503 | if $item == $_ |
40 | 102 | 613 | if exists $cache{join $", @_} |
41 | 0 | 613 | unless $distance |
44 | 613 | 393179 | if $candidate == $start |
45 | 4611 | 388568 | if (distance($start, $candidate) <= $distance) |
55 | 40462 | 352717 | if exists $cache{join $", @_} |
68 | 173749 | 352717 | if ($x1 > $x2) { } |
127942 | 224775 | elsif ($y2 >= $y1) { } | |
77 | 77153 | 147622 | $x2 - $x1 > $y1 - $y2 ? : |