| line |
true |
false |
branch |
|
44
|
1 |
0 |
if exists $param->{'map'} and exists $param->{'str2map'} |
|
46
|
0 |
8 |
if exists $param->{'map'} |
|
48
|
5 |
3 |
if exists $param->{'str2map'} |
|
56
|
6 |
4 |
if $x >= 0 and $x <= $maxcol |
|
60
|
14 |
4 |
if $x >= 0 and $x <= $maxrow and $y >= 0 and $y <= $maxcol |
|
73
|
26 |
24 |
if $r > 0 and $c > 0 |
|
74
|
25 |
25 |
if $r > 0 and $c < $maxcol |
|
75
|
25 |
25 |
if $r < $maxrow and $c > 0 |
|
76
|
28 |
22 |
if $r < $maxrow and $c < $maxcol |
|
83
|
171 |
59 |
if $c > 0 |
|
84
|
183 |
47 |
if $c < $maxcol |
|
85
|
174 |
56 |
if $r > 0 |
|
86
|
180 |
50 |
if $r < $maxrow |
|
93
|
1 |
1 |
unless defined $dimap |
|
100
|
0 |
9 |
if ($value == $badcost) |
|
107
|
1 |
16 |
if ($here[$h] == $badcost) |
|
122
|
0 |
7 |
if not defined $map or ref $map ne 'ARRAY' or not defined $map->[0] or ref $map->[0] ne 'ARRAY' |
|
129
|
0 |
21 |
if @{$map->[$r]} != $cols |
|
143
|
3 |
13 |
unless defined $dimap |
|
146
|
0 |
13 |
if $r > $maxrow or $r < 0 |
|
147
|
0 |
13 |
if $c > $maxcol or $c < 0 |
|
150
|
1 |
12 |
if $value <= $self->min_cost |
|
154
|
20 |
4 |
if $x >= 0 and $x <= $maxcol |
|
158
|
56 |
4 |
if $x >= 0 and $x <= $maxrow and $y >= 0 and $y <= $maxcol |
|
166
|
61 |
15 |
if $_->[1] < $value |
|
184
|
1 |
6 |
unless defined $dimap |
|
187
|
0 |
6 |
if $r > $maxrow or $r < 0 |
|
188
|
0 |
6 |
if $c > $maxcol or $c < 0 |
|
191
|
1 |
5 |
if $value <= $self->min_cost |
|
193
|
5 |
0 |
if ($c > 0) |
|
196
|
5 |
0 |
if ($c < $maxcol) |
|
199
|
5 |
0 |
if ($r > 0) |
|
202
|
5 |
0 |
if ($r < $maxrow) |
|
207
|
14 |
6 |
if $_->[1] < $value |
|
213
|
0 |
1 |
unless defined $dimap |
|
218
|
0 |
1 |
if $curcost <= $self->min_cost |
|
225
|
0 |
2 |
if $here[$h] == $badcost |
|
231
|
0 |
1 |
unless @$coords |
|
237
|
1 |
4 |
if $costs[$k][$p] == $badcost |
|
241
|
1 |
1 |
if $newcost < $curcost |
|
244
|
0 |
1 |
unless @ret |
|
265
|
221 |
182 |
if $value <= $mincost |
|
268
|
166 |
366 |
if $nv < $best and $nv >= $mincost |
|
269
|
30 |
502 |
if $best == $mincost |
|
271
|
34 |
148 |
if ($value > $best + 2) |
|
277
|
7 |
14 |
if $stable |
|
305
|
9 |
47 |
if $value <= $mincost |
|
311
|
84 |
102 |
if $nr->[0] < $best->[0] and $nr->[0] >= $mincost |
|
312
|
26 |
160 |
if $best->[0] == $mincost |
|
316
|
17 |
30 |
if ($value > $best->[0] + 1.4142135623730951) |
|
322
|
2 |
3 |
if $stable |
|
340
|
1 |
2 |
unless defined $dimap |
|
346
|
13 |
26 |
if $dimap->[$r][$c] > $mincost |
|
356
|
0 |
6 |
unless defined $str |
|
367
|
2 |
1 |
unless (defined $ref) |
|
369
|
1 |
1 |
unless defined $ref |
|
377
|
5 |
8 |
if $c == $cols - 1 |
|
387
|
1 |
2 |
unless defined $dimap |
|
393
|
5 |
34 |
if $dimap->[$r][$c] == $maxcost |
|
402
|
1 |
1 |
unless defined $dimap |
|
407
|
0 |
1 |
if $r > $maxrow or $r < 0 |
|
408
|
0 |
1 |
if $c > $maxcol or $c < 0 |
|
409
|
0 |
1 |
unless &looks_like_number($ref->[2]) |
|
419
|
1 |
23 |
unless defined $dimap |
|
425
|
0 |
29 |
if $r > $maxrow or $r < 0 |
|
426
|
0 |
29 |
if $c > $maxcol or $c < 0 |