Branch Coverage

blib/lib/Games/Tournament/Contestant.pm
Criterion Covered Total %
branch 28 58 48.2


line true false branch
13 24 4 @Games::Tournament::Swiss::Config::roles ? :
16 19 9 %Games::Tournament::Swiss::Config::scores ? :
103 0 0 if grep {$players->{$_}->id eq $id;} keys %$players
121 0 576 unless $game and $game->can('contestants')
126 0 576 unless grep /$_/, @ids
130 576 576 if $contestant->id ne $id
155 0 0 unless exists $roles{$id}
180 0 0 unless exists $roles{$id}
184 0 0 unless $player->id == $self->id
206 160 127673 if (defined $score)
209 104371 23462 unless defined $scores and &all(sub { defined $_; } , values %$scores)
215 0 58623 unless defined($scores{$round} && $lcconverter{$scores{$round}})
219 23462 0 if defined $sum
244 0 0 unless UNIVERSAL::isa($gameInRound, 'Games::Tournament::Card')
249 0 0 unless %gameAgainst
266 0 2856 if (defined $name) { }
2856 0 elsif (exists $self->{'name'}) { }
282 0 1022 if (defined $title) { }
974 48 elsif (exists $self->{'title'}) { }
314 0 54022 if (defined $rating and $rating =~ /^\d$/) { }
52141 1881 elsif (exists $self->{'rating'}) { }
332 0 0 if (defined $play) { }
0 0 elsif ($self->{'play'}) { }
353 0 189806 if (defined $id) { }
189806 0 elsif (exists $self->{'id'}) { }
368 1744 2466 if (defined $firstround) { }
722 1744 elsif (exists $self->{'firstround'}) { }
385 0 0 if ($absent) { }
0 0 elsif (defined $self->{'absent'}) { }