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
134 0 0 5605 $transitions and ref $transitions eq 'ARRAY'
227 0 203 16 defined $index and $index eq $self->lastBracket
232 0 0 203 defined $nextBracket and $nextBracket->isa('Games::Tournament::Swiss::Bracket')
256 0 0 0 defined $index and $index eq $self->firstBracket
323 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
539 0 0 1517 @$s1 and @$s2
541 0 0 1517 @$s1 and @$s2
590 31 355 680 defined $pair[0]->preference->role && defined $pair[1]->preference->role && $pair[0]->preference->role eq $pair[1]->preference->role
655 106 0 86 $group->hetero and @nonpaired
106 58 28 $group->hetero and @nonpaired and $group->bigGroupXprime
684 0 0 148 defined $nonpaired and @$nonpaired
716 45 20 23 $islastBracket and @$nonpaired == 1
747 25 14 6 @rejections and not @$nonpaired % 2
792 222 180 0 $group->{'remainderof'} and $group->{'remainderof'}{'lastheteroshuffle'}
803 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)
926 83 21 0 $group->{'c10repaired'} and $group->{'lowfloaterlastshuffle'}
1078 20 17 0 $group->{'c11repaired'} and $group->{'lastheteroshuffle'}
1214 1 0 0 $group->{'remainderof'} and $group->{'remainderof'}{'c12repaired'}
1 0 0 $group->{'remainderof'} and $group->{'remainderof'}{'c11repaired'}
1279 0 0 0 $bracketAbove and $bracketAbove->hetero
1428 0 57 2 $penultpPrime and not @returnees
1529 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
1616 10 7 300 $s1role and $s2role

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
305 92 0 491 $rejections >= @candidates or @candidates == 0
402 20 0 148 $rejections >= @candidates or @candidates == 0
687 65 23 60 $group->hetero && @$nonpaired > 1 || $islastBracket
792 59 0 402 $group->hetero or $group->{'remainderof'} and $group->{'remainderof'}{'lastheteroshuffle'}
958 2 1 3 $heteroBracket->floatCheckWaive eq 'B6Down' or $heteroBracket->floatCheckWaive eq 'B5Down'
980 17 0 15 $group->{'remainderof'}{'c11repaired'} or $group->{'remainderof'}{'c12repaired'}
1214 1 0 2 $group->{'c12repaired'} or $previous->{'c12repaired'}
1627 242 0 4 $roles[0] or $roles[1]