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
171 0 0 0 $player and $role eq 'Unpaired'
177 0 0 0 $player and $role eq 'Bye'
181 0 0 60 $player and $opponent
0 0 60 $player and $opponent and $role
0 0 60 $player and $opponent and $role and $opponentRole
189 0 0 60 $opponentId and defined $opponentRole
0 60 0 $opponentId and defined $opponentRole and $role eq $opponentRole
263 358 290 0 $score and $score eq 'Bye' || $score eq 'Forfeit'
326 0 0 0 $entrant and $entrant->isa('Games::Tournament::Contestant::Swiss')
473 4 0 1308 $game and $game->can('myRole')
474 440 868 0 $game->result and $game->result eq 'Bye'
480 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'
512 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
548 4 0 1116 $game and $game->can('myRole')

or 2 conditions

line l !l condition
227 49 22 $self->play || {}
255 648 0 $game ||= 'No game'
316 0 0 $self->play || {}

or 3 conditions

line l !l&&r !l&&!r condition
164 0 0 60 $opponentId eq 'Bye' or $opponentId eq 'Unpaired'
0 60 0 $opponentId eq 'Bye' or $opponentId eq 'Unpaired' or $opponentsOpponent eq $id
263 24 0 266 $score eq 'Bye' || $score eq 'Forfeit'
301 32 28 14 $orderings[$b]{'higherscore'} <=> $orderings[$a]{'higherscore'} or $orderings[$b]{'totalscore'} <=> $orderings[$a]{'totalscore'}
441 0 0 0 exists $dupes->{$id1}{$id2} or exists $colorbar->{$id1}{$id2}
473 4 0 0 $player->firstround > $round or &any(sub { $id eq $_; } , @absenteeids)
548 4 0 0 $player->firstround > $round or &any(sub { $id eq $_; } , @absenteeids)
550 0 0 1116 not $player or $@
586 0 0 0 $$unavailables{$id[$player]}{$id[$_]} ||= $round