Branch Coverage

blib/lib/Game/Marad.pm
Criterion Covered Total %
branch 42 42 100.0


line true false branch
62 2 3 if $x < 0 or $x >= 9 or $y < 0 or $y >= 9
64 1 2 if $piece == 0
65 1 1 unless ($piece >> 6 & 1) == $player
75 2 9 if $srcx < 0 or $srcx >= 9 or $srcy < 0 or $srcy >= 9
82 1 8 if $piece == 0
84 1 7 unless ($piece >> 6 & 1) == $player
87 1 6 if $move_type == 0
93 1 5 unless ($move_type & $piece_type) > 0
99 2 3 if ($center > 0 and ($center & 128) == 128)
112 2 3 if $player == 0
130 67 14 if $piece == 0
156 2 30 if $point->[0] < 0 or $point->[0] >= 9 or $point->[1] < 0 or $point->[1] >= 9
162 27 3 if ($$grid[$stack[-1][1]][$stack[-1][0]] == 0)
187 2 15 if $x1 == $x2 and $y1 == $y2
190 2 2 $plus_x ? :
4 11 if $dy == 0
193 1 1 $plus_y ? :
2 9 if $dx == 0
195 4 4 $plus_x ? :
4 4 $plus_y ? :
8 1 if abs $dx == abs $dy