Condition Coverage

blib/lib/Game/DijkstraMap.pm
Criterion Covered Total %
condition 72 107 67.2


and 3 conditions

line !l l&&!r l&&r condition
46 11 0 1 exists $param->{'map'} and exists $param->{'str2map'}
58 3 1 6 $x >= 0 and $x <= $maxcol
62 9 3 18 $x >= 0 and $x <= $maxrow
12 3 15 $x >= 0 and $x <= $maxrow and $y >= 0
6 1 14 $x >= 0 and $x <= $maxrow and $y >= 0 and $y <= $maxcol
75 15 9 26 $r > 0 and $c > 0
76 15 10 25 $r > 0 and $c < $maxcol
77 13 12 25 $r < $maxrow and $c > 0
78 13 9 28 $r < $maxrow and $c < $maxcol
191 4 0 20 $x >= 0 and $x <= $maxcol
196 12 0 60 $x >= 0 and $x <= $maxrow
12 4 56 $x >= 0 and $x <= $maxrow and $y >= 0
4 0 56 $x >= 0 and $x <= $maxrow and $y >= 0 and $y <= $maxcol
418 3 23 13 $dimap->[$r][$c] != $mincost and $dimap->[$r][$c] != $badcost

or 2 conditions

line l !l condition
124 9 0 $param->{'my_weight'} // 1
131 16 0 $param->{'weights'}[$h] // 0
257 1 0 $param->{'my_weight'} // 1
264 2 0 $param->{'weights'}[$h] // 0
277 4 0 $param->{'weights'}[$k] // 0
279 2 0 $param->{'my_weight'} // 1
294 1 7 $adjvals //= \&Game::DijkstraMap::adjacent_values_sq

or 3 conditions

line l !l&&r !l&&!r condition
141 1 0 1 not defined $fn or ref $fn ne "CODE"
156 0 1 7 not defined $map or ref $map ne "ARRAY"
1 0 7 not defined $map or ref $map ne "ARRAY" or not defined $map->[0]
1 0 7 not defined $map or ref $map ne "ARRAY" or not defined $map->[0] or ref $map->[0] ne "ARRAY"
183 0 0 13 $r > $maxrow or $r < 0
184 0 0 13 $c > $maxcol or $c < 0
186 1 12 0 $value //= $dimap->[$r][$c]
225 0 0 6 $r > $maxrow or $r < 0
226 0 0 6 $c > $maxcol or $c < 0
228 0 6 0 $value //= $dimap->[$r][$c]
305 197 29 222 $value == $badcost or $value == $mincost
354 4 5 47 $value == $badcost or $value == $mincost
431 0 6 0 $lf //= $/
481 0 0 1 $r > $maxrow or $r < 0
482 0 0 1 $c > $maxcol or $c < 0
499 0 0 29 $r > $maxrow or $r < 0
500 0 0 29 $c > $maxcol or $c < 0