Branch Coverage

blib/lib/Games/Go/AGA/DataObjects/Round.pm
Criterion Covered Total %
branch 2 70 2.8


line true false branch
57 3 0 if $$self{'change_callback'}
64 0 19 wantarray ? :
72 0 0 wantarray ? :
98 0 0 if (ref $game)
101 0 0 if (refaddr($$games[$idx]) == $raddr)
106 0 0 if (ref $game)
123 0 0 if grep {$_->id eq $player->id;} @{$$self{'byes'};}
154 0 0 if ($player->id eq $id_0)
158 0 0 if ($player->id eq $id_1)
165 0 0 if ($game->white->id eq $id_0) { }
0 0 elsif ($game->black->id eq $id_0) { }
175 0 0 if ($game->white->id eq $id_1) { }
0 0 elsif ($game->black->id eq $id_1) { }
185 0 0 if defined $item0 and defined $item1
187 0 0 unless (defined $item0)
190 0 0 unless (defined $item1)
194 0 0 if $item0->can('id') and $item1->can('id')
195 0 0 if ($item0->can('white') and $item1->can('white')) { }
0 0 elsif ($item0->can('id')) { }
0 0 elsif ($item1->can('id')) { }
197 0 0 if ($item0->white->id eq $item1->white->id and $item0->black->id eq $item1->black->id) { }
206 0 0 if ($p0->id eq $item0->white->id) { }
212 0 0 if ($p1->id eq $item1->white->id) { }
227 0 0 if ($p1->id eq $item1->white->id) { }
241 0 0 if ($p0->id eq $item0->white->id) { }
251 0 0 if $item0->can('handicap')
252 0 0 if $item1->can('handicap')
260 0 0 if (looks_like_number $idx) { }
0 0 elsif (ref $idx) { }
269 0 0 if ($$players[$ii]->id eq $id)
282 0 0 if ($$players[$ii]->id eq $id)
290 0 0 if ($idx < 0 or $idx > $#{$players;})
303 0 0 if ($winner)
304 0 0 if $winner->id eq $game->white->id
305 0 0 if $winner->id eq $game->black->id