Branch Coverage

blib/lib/Games/Tournament/Contestant/Swiss.pm
Criterion Covered Total %
branch 22 38 57.8


line true false branch
12 24 4 @Games::Tournament::Swiss::Config::roles ? :
87 1627 38236 if @_
103 0 0 if (defined $oldId) { }
0 0 elsif ($self->{'oldId'}) { }
119 0 0 if (@opponents) { }
0 0 elsif ($self->{'opponents'}) { }
139 648 1764 if (defined $role and defined $round) { }
0 1764 elsif ($self->{'roles'} and $round) { }
1536 228 elsif ($self->{'roles'}) { }
141 0 648 if defined $oldrole and $oldrole ne $role
181 1223 1072 if (defined $direction and $direction =~ /^(?:Up|Down|)$/) { }
362 710 elsif ($self->{'floater'}) { }
201 648 2021 if (defined $round and defined $float) { }
2003 18 elsif (defined $round) { }
18 0 elsif ($self->{'floats'}) { }
206 2003 0 if ($round == -1 or $round == -2) { }
207 634 1369 if (not exists $self->{'floats'}[$round - 1]) { }
259 0 0 if ($unbyable) { }
0 0 elsif (defined $self->{'unbyable'}) { }