Branch Coverage

blib/lib/Games/Go/SimpleBoard.pm
Criterion Covered Total %
branch 0 78 0.0


line true false branch
113 0 0 unless ($size > 0)
144 0 0 unless ($seen{join $;, $x, $y}++)
145 0 0 if ($$board[$x][$y] & $mark) { }
0 0 elsif (not $$board[$x][$y] & 384) { }
148 0 0 unless $seen{join $;, $x - 1, $y} or $x <= 0
149 0 0 unless $seen{join $;, $x + 1, $y} or $x >= $max
150 0 0 unless $seen{join $;, $x, $y - 1} or $y <= 0
151 0 0 unless $seen{join $;, $x, $y + 1} or $y >= $max
236 0 0 if (not defined $x) { }
0 0 elsif ($x == -2) { }
237 0 0 unless delete $$self{'unmark'}
241 0 0 unless delete $$self{'unmark'}
244 0 0 unless my $c = $HANDICAP_COORD{$$self{'size'}}
246 0 0 unless my $h = $HANDICAP_XY{$y}
259 0 0 if $set & 1024
261 0 0 if ($set & 4096)
262 0 0 unless $$self{'unmark'}
269 0 0 unless (${$$_[5] ||= \my($hint);})
270 0 0 $set & 128 ? :
277 0 0 if $x > 0 and $$board[$x - 1][$y] & $opp
278 0 0 if $x < $$self{'max'} and $$board[$x + 1][$y] & $opp
279 0 0 if $y > 0 and $$board[$x][$y - 1] & $opp
280 0 0 if $y < $$self{'max'} and $$board[$x][$y + 1] & $opp
286 0 0 $own == 128 ? :
294 0 0 if (@suicide) { }
0 0 elsif (not @suicide and @capture == 1) { }
298 0 0 $opp == 128 ? :
305 0 0 if $x > 0 and not $$board[$x - 1][$y] & $opp
306 0 0 if $x < $$self{'max'} and not $$board[$x + 1][$y] & $opp
307 0 0 if $y > 0 and not $$board[$x][$y - 1] & $opp
308 0 0 if $y < $$self{'max'} and not $$board[$x][$y + 1] & $opp
310 0 0 if ($libs == 1)
339 0 0 if $$board[$x][$y] & 8576 and not $$board[$x][$y] & 512
342 0 0 if ($may_suicide) { }
345 0 0 $colour == 1 ? :
352 0 0 if $x > 0 and $$board[$x - 1][$y] & $opp and $self->capture($opp, $x - 1, $y, 1)
353 0 0 if $x < $$self{'max'} and $$board[$x + 1][$y] & $opp and $self->capture($opp, $x + 1, $y, 1)
354 0 0 if $y > 0 and $$board[$x][$y - 1] & $opp and $self->capture($opp, $x, $y - 1, 1)
355 0 0 if $y < $$self{'max'} and $$board[$x][$y + 1] & $opp and $self->capture($opp, $x, $y + 1, 1)