Branch Coverage

blib/lib/Games/Go/AGA/DataObjects/Register.pm
Criterion Covered Total %
branch 23 46 50.0


line true false branch
66 23 0 if $$self{'change_callback'}
72 0 0 wantarray ? :
84 1 1 wantarray ? :
95 2 0 if (refaddr $p != $my_refaddr)
107 0 19 unless ($id)
113 1 18 if ($self->id_is_duplicate($id, undef))
117 18 0 if ($idx < 0 or $idx > $#{$$self{'players'};}) { }
146 0 0 if (@{$$players[$idx]->games;})
160 0 0 if (looks_like_number $idx) { }
0 0 elsif (ref $idx) { }
169 0 0 if (refaddr($$players[$ii]) == $my_refaddr)
183 0 0 if ($$players[$ii]->id eq $id)
191 0 0 if ($idx < 0 or $idx > $#{$players;})
204 19 1 if (uc $key eq 'BAND_BREAKS')
215 18 1 if $band_breaks
218 0 1 if not $num_bands or $num_bands == 1
235 2 0 if ($running_total + $entrants_per_rating{$sorted_ranks[$ii]} / 2 < $next_break)
240 0 2 if $ii >= @sorted_ranks
253 0 18 wantarray ? :
260 0 18 if @{$bands;} < 1
266 12 18 if ($limit < 0 and $limit == int $limit) { }
269 7 5 if $rating > $limit
272 6 12 if $rating >= $limit