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 ? :
97 0 0 if grep {$players->{$_}->id eq $id;} keys %$players
115 0 576 unless $game and $game->can('contestants')
120 0 576 unless grep /$_/, @ids
124 576 576 if $contestant->id ne $id
149 0 0 unless exists $roles{$id}
174 0 0 unless exists $roles{$id}
178 0 0 unless $player->id == $self->id
200 160 127692 if (defined $score)
203 104390 23462 unless defined $scores and &all(sub { defined $_; } , values %$scores)
209 0 58623 unless defined($scores{$round} && $lcconverter{$scores{$round}})
213 23462 0 if defined $sum
238 0 0 unless UNIVERSAL::isa($gameInRound, 'Games::Tournament::Card')
243 0 0 unless %gameAgainst
260 0 2848 if (defined $name) { }
2848 0 elsif (exists $self->{'name'}) { }
276 0 1014 if (defined $title) { }
966 48 elsif (exists $self->{'title'}) { }
308 0 54710 if (defined $rating and $rating =~ /^\d$/) { }
52829 1881 elsif (exists $self->{'rating'}) { }
326 0 0 if (defined $play) { }
0 0 elsif ($self->{'play'}) { }
347 0 190994 if (defined $id) { }
190994 0 elsif (exists $self->{'id'}) { }
362 1744 2466 if (defined $firstround) { }
722 1744 elsif (exists $self->{'firstround'}) { }
379 0 0 if ($absent) { }
0 0 elsif (defined $self->{'absent'}) { }