Branch Coverage

blib/lib/Games/Tournament/RoundRobin.pm
Criterion Covered Total %
branch 50 56 89.2


line true false branch
66 75 3 if (ref $members) { }
68 18 57 if ref $members eq 'HASH'
71 18 57 if ($memberClass = ref $members->[0]) { }
26 31 elsif ($members->[0] =~ /^\d+$/) { }
77 11 7 if $n % 2
82 15 11 if $n % 2
85 18 13 if ($n % 2)
93 3 0 if $n % 2
113 19 40 if (ref $hash->{$key}) { }
116 0 19 unless exists $hash->{$key}{'index'}
145 120 846 if ($i == $round) { }
152 752 94 $modPartner ? :
217 2 22 if (defined $pairings{$member})
248 233 233 unless exists $pairings[$member]
279 65 8 unless grep {$_ eq 'Bye';} @contestants
323 13 52 if ($a == 0) { }
10 42 elsif ($b == 0) { }
25 17 elsif ($round % 2) { }
378 2109 265 if ($candidate =~ /^\d+$/) { }
380 239 1870 if $candidate == $member
383 93 172 if $candidate eq $member
405 562 10 if ($handle =~ /\d+/) { }
412 8 30 if $member eq $handle
434 0 0 unless $member == $index or $member == $self->size - 1
458 178 22 if ($handle =~ /\d+/) { }
460 162 16 unless $self->index($member) == $handle
465 18 4 unless $member eq $handle
487 0 0 unless $member == $index or $member == $self->size - 1