Condition Coverage

blib/lib/Games/Tournament/Swiss/Procedure/FIDE.pm
Criterion Covered Total %
condition 72 115 62.6


and 3 conditions

line !l l&&!r l&&r condition
127 0 0 5605 $transitions and ref $transitions eq 'ARRAY'
220 0 203 16 defined $index and $index eq $self->lastBracket
225 0 0 203 defined $nextBracket and $nextBracket->isa('Games::Tournament::Swiss::Bracket')
249 0 0 0 defined $index and $index eq $self->firstBracket
316 27 5 89 $index eq $self->lastBracket and $index ne $self->firstBracket
25 0 7 grep {$_->floating eq 'Down' if $_->floating;} @unpairables and $previousIndex
25 7 0 grep {$_->floating eq 'Down' if $_->floating;} @unpairables and $previousIndex and $previousMembers
532 0 0 1517 @$s1 and @$s2
534 0 0 1517 @$s1 and @$s2
583 31 355 680 defined $pair[0]->preference->role && defined $pair[1]->preference->role && $pair[0]->preference->role eq $pair[1]->preference->role
648 106 0 86 $group->hetero and @nonpaired
106 58 28 $group->hetero and @nonpaired and $group->bigGroupXprime
677 0 0 148 defined $nonpaired and @$nonpaired
709 45 20 23 $islastBracket and @$nonpaired == 1
740 25 14 6 @rejections and not @$nonpaired % 2
785 222 180 0 $group->{'remainderof'} and $group->{'remainderof'}{'lastheteroshuffle'}
796 864 0 89 $lastC10shuffle and ref $lastC10shuffle eq 'ARRAY'
864 0 89 $lastC10shuffle and ref $lastC10shuffle eq 'ARRAY' and @$lastC10shuffle
0 73 16 $lastC10shuffle and ref $lastC10shuffle eq 'ARRAY' and @$lastC10shuffle and &all(sub { $newOrder[$_] == $lastC10shuffle->[$_]; } , 0 .. $#$lastC10shuffle)
919 83 21 0 $group->{'c10repaired'} and $group->{'lowfloaterlastshuffle'}
1071 20 17 0 $group->{'c11repaired'} and $group->{'lastheteroshuffle'}
1207 1 0 0 $group->{'remainderof'} and $group->{'remainderof'}{'c12repaired'}
1 0 0 $group->{'remainderof'} and $group->{'remainderof'}{'c11repaired'}
1272 0 0 0 $bracketAbove and $bracketAbove->hetero
1421 0 57 2 $penultpPrime and not @returnees
1522 0 2 0 $pprime == 0 and $index eq $self->lastBracket
2 0 0 $pprime == 0 and $index eq $self->lastBracket and defined $self->penultpPrime
0 2 0 $pprime < $p and $index eq $self->lastBracket
1609 10 7 300 $s1role and $s2role

or 2 conditions

line l !l condition
1705 227 265 $contestants->{$_}->floating || 'Not'
1748 1129 3946 $_->[1] || ''

or 3 conditions

line l !l&&r !l&&!r condition
298 92 0 491 $rejections >= @candidates or @candidates == 0
395 20 0 148 $rejections >= @candidates or @candidates == 0
680 65 23 60 $group->hetero && @$nonpaired > 1 || $islastBracket
785 59 0 402 $group->hetero or $group->{'remainderof'} and $group->{'remainderof'}{'lastheteroshuffle'}
951 2 1 3 $heteroBracket->floatCheckWaive eq 'B6Down' or $heteroBracket->floatCheckWaive eq 'B5Down'
973 17 0 15 $group->{'remainderof'}{'c11repaired'} or $group->{'remainderof'}{'c12repaired'}
1207 1 0 2 $group->{'c12repaired'} or $previous->{'c12repaired'}
1620 242 0 4 $roles[0] or $roles[1]