Branch Coverage

blib/lib/Games/Goban.pm
Criterion Covered Total %
branch 40 54 74.0


line true false branch
73 0 9 unless (not $opts{'size'} =~ /\D/ and $opts{'size'} > 4 and $opts{'size'} <= 26)
78 0 9 unless exists $types{$opts{'game'}}
123 0 9 unless $stat
137 5 4 $self->{'turn'} eq 'b' ? :
160 1 1 $self->{'turn'} eq 'b' ? :
218 10 427 if grep {/^$point$/;} $board->hoshi
238 6 2 $_->{'piece'} ? :
264 0 28 if $opts{'coords'}
268 1 1 if ($p and $p->move == $board->{'move'} - 1 and $text and substr($text, -1, 1) ne "\n")
277 3 2 $p->color eq 'b' ? :
10 427 $board->is_hoshi($pos) ? :
5 437 $p ? :
281 2 440 if ($p and $p->move == $board->{'move'} - 1)
285 0 2 if ($opts{'coords'})
344 0 0 $piece->color eq 'b' ? :
0 0 if $piece
379 457 1 if $x < $self->size and $y < $self->size
397 9 0 if ($size % 2)
399 0 0 $size > 4 ? :
1 0 $size > 6 ? :
8 1 $size > 11 ? :
401 0 9 unless $margin
410 8 1 if ($size % 2 and $size > 9)
443 11 8890 if ($skip_i)
445 15 7 if $_ >= 8
464 2 3674 if $skip_i and $x > 8
467 1 3675 if $skip_i and $y > 8