Branch Coverage

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


line true false branch
64 75 3 if (ref $members) { }
66 18 57 if ref $members eq 'HASH'
69 18 57 if ($memberClass = ref $$members[0]) { }
26 31 elsif ($$members[0] =~ /^\d+$/) { }
75 11 7 if $n % 2
80 15 11 if $n % 2
83 18 13 if ($n % 2)
91 3 0 if $n % 2
111 19 40 if (ref $$hash{$key}) { }
113 0 19 unless exists $$hash{$key}{'index'}
143 120 846 if ($i == $round) { }
150 752 94 $modPartner ? :
215 2 22 if (defined $pairings{$member})
246 233 233 unless exists $pairings[$member]
277 65 8 unless grep {$_ eq 'Bye';} @contestants
321 13 52 if ($a == 0) { }
10 42 elsif ($b == 0) { }
25 17 elsif ($round % 2) { }
376 2109 265 if ($candidate =~ /^\d+$/) { }
378 239 1870 if $candidate == $member
381 93 172 if $candidate eq $member
403 562 10 if ($handle =~ /\d+/) { }
410 8 30 if $member eq $handle
432 0 0 unless $member == $index or $member == $self->size - 1
456 178 22 if ($handle =~ /\d+/) { }
458 162 16 unless $self->index($member) == $handle
463 18 4 unless $member eq $handle
485 0 0 unless $member == $index or $member == $self->size - 1