Condition Coverage

blib/lib/Games/Tournament/Swiss.pm
Criterion Covered Total %
condition 41 87 47.1


and 3 conditions

line !l l&&!r l&&r condition
177 0 0 0 $player and $role eq 'Unpaired'
183 0 0 0 $player and $role eq 'Bye'
187 0 0 60 $player and $opponent
0 0 60 $player and $opponent and $role
0 0 60 $player and $opponent and $role and $opponentRole
195 0 0 60 $opponentId and defined $opponentRole
0 60 0 $opponentId and defined $opponentRole and $role eq $opponentRole
269 358 290 0 $score and $score eq 'Bye' || $score eq 'Forfeit'
332 0 0 0 $entrant and $entrant->isa('Games::Tournament::Contestant::Swiss')
479 4 0 1308 $game and $game->can('myRole')
480 440 868 0 $game->result and $game->result eq 'Bye'
486 440 868 0 $game->result and exists $game->result->{$role}
0 868 0 $game->result and exists $game->result->{$role} and $game->result->{$role} eq 'Forfeit'
518 306 155 4697 $players->[$player]->preference->role and $players->[$_]->preference->role
461 2338 2359 $players->[$player]->preference->role and $players->[$_]->preference->role and $players->[$player]->preference->role eq $players->[$_]->preference->role
2493 1904 455 $players->[$player]->preference->role and $players->[$_]->preference->role and $players->[$player]->preference->role eq $players->[$_]->preference->role and $players->[$player]->preference->strength eq 'Absolute'
4242 214 241 $players->[$player]->preference->role and $players->[$_]->preference->role and $players->[$player]->preference->role eq $players->[$_]->preference->role and $players->[$player]->preference->strength eq 'Absolute' and $players->[$player]->preference->strength eq $players->[$_]->preference->strength
554 4 0 1116 $game and $game->can('myRole')

or 2 conditions

line l !l condition
233 49 22 $self->play || {}
261 648 0 $game ||= 'No game'
322 0 0 $self->play || {}

or 3 conditions

line l !l&&r !l&&!r condition
170 0 0 60 $opponentId eq 'Bye' or $opponentId eq 'Unpaired'
0 60 0 $opponentId eq 'Bye' or $opponentId eq 'Unpaired' or $opponentsOpponent eq $id
269 24 0 266 $score eq 'Bye' || $score eq 'Forfeit'
307 32 28 14 $orderings[$b]{'higherscore'} <=> $orderings[$a]{'higherscore'} or $orderings[$b]{'totalscore'} <=> $orderings[$a]{'totalscore'}
447 0 0 0 exists $dupes->{$id1}{$id2} or exists $colorbar->{$id1}{$id2}
479 4 0 0 $player->firstround > $round or &any(sub { $id eq $_; } , @absenteeids)
554 4 0 0 $player->firstround > $round or &any(sub { $id eq $_; } , @absenteeids)
556 0 0 1116 not $player or $@
592 0 0 0 $$unavailables{$id[$player]}{$id[$_]} ||= $round