Branch Coverage

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


line true false branch
36 0 9 unless (not $opts{'size'} =~ /\D/ and $opts{'size'} > 4 and $opts{'size'} <= 26)
41 0 9 unless exists $types{$opts{'game'}}
74 0 9 unless $stat
88 5 4 $$self{'turn'} eq 'b' ? :
105 1 1 $$self{'turn'} eq 'b' ? :
131 10 427 if grep {/^$point$/;} $board->hoshi
144 6 2 $$_{'piece'} ? :
158 0 28 if $opts{'coords'}
163 1 1 if ($p and $p->move == $$board{'move'} - 1 and $text and substr($text, -1, 1) ne "\n")
172 3 2 $p->color eq 'b' ? :
10 427 $board->is_hoshi($pos) ? :
5 437 $p ? :
176 2 440 if ($p and $p->move == $$board{'move'} - 1)
180 0 2 if ($opts{'coords'})
213 0 0 $piece->color eq 'b' ? :
0 0 if $piece
241 457 1 if $x < $self->size and $y < $self->size
259 9 0 if ($size % 2)
261 0 0 $size > 4 ? :
1 0 $size > 6 ? :
8 1 $size > 11 ? :
263 0 9 unless $margin
272 8 1 if ($size % 2 and $size > 9)
305 11 8890 if ($skip_i)
307 15 7 if $_ >= 8
326 2 3674 if $skip_i and $x > 8
329 1 3675 if $skip_i and $y > 8