Condition Coverage

blib/lib/Games/Go/SimpleBoard.pm
Criterion Covered Total %
condition 0 74 0.0


and 3 conditions

line !l l&&!r l&&r condition
277 0 0 0 $x > 0 and $$board[$x - 1][$y] & $opp
278 0 0 0 $x < $$self{'max'} and $$board[$x + 1][$y] & $opp
279 0 0 0 $y > 0 and $$board[$x][$y - 1] & $opp
280 0 0 0 $y < $$self{'max'} and $$board[$x][$y + 1] & $opp
294 0 0 0 not @suicide and @capture == 1
305 0 0 0 $x > 0 and not $$board[$x - 1][$y] & $opp
306 0 0 0 $x < $$self{'max'} and not $$board[$x + 1][$y] & $opp
307 0 0 0 $y > 0 and not $$board[$x][$y - 1] & $opp
308 0 0 0 $y < $$self{'max'} and not $$board[$x][$y + 1] & $opp
339 0 0 0 $$board[$x][$y] & 8576 and not $$board[$x][$y] & 512
352 0 0 0 $x > 0 and $$board[$x - 1][$y] & $opp
0 0 0 $x > 0 and $$board[$x - 1][$y] & $opp and $self->capture($opp, $x - 1, $y, 1)
353 0 0 0 $x < $$self{'max'} and $$board[$x + 1][$y] & $opp
0 0 0 $x < $$self{'max'} and $$board[$x + 1][$y] & $opp and $self->capture($opp, $x + 1, $y, 1)
354 0 0 0 $y > 0 and $$board[$x][$y - 1] & $opp
0 0 0 $y > 0 and $$board[$x][$y - 1] & $opp and $self->capture($opp, $x, $y - 1, 1)
355 0 0 0 $y < $$self{'max'} and $$board[$x][$y + 1] & $opp
0 0 0 $y < $$self{'max'} and $$board[$x][$y + 1] & $opp and $self->capture($opp, $x, $y + 1, 1)

or 2 conditions

line l !l condition
269 0 0 $$_[5] ||= \my($hint)

or 3 conditions

line l !l&&r !l&&!r condition
148 0 0 0 $seen{join $;, $x - 1, $y} or $x <= 0
149 0 0 0 $seen{join $;, $x + 1, $y} or $x >= $max
150 0 0 0 $seen{join $;, $x, $y - 1} or $y <= 0
151 0 0 0 $seen{join $;, $x, $y + 1} or $y >= $max
292 0 0 0 @capture || @suicide
0 0 0 ${$$_[5];} ||= !(@capture || @suicide)