Branch Coverage

blib/lib/Games/Tournament/Contestant/Swiss/Preference.pm
Criterion Covered Total %
branch 41 48 85.4


line true false branch
15 24 6 @Games::Tournament::Swiss::Config::roles ? :
52 1886 45 unless $args{'sign'}
53 1903 28 unless $args{'difference'}
71 22 727 unless $roles->[-1] and &any(sub { $roles->[-1] eq $_; } , ('White', 'Black'))
76 24 245 if $before and $oneBeforeThat and $oneBeforeThat eq $before and $before eq $lastRole
81 109 618 if (not $sign && defined $difference) { }
486 132 elsif ($lastRole eq $otherDirection) { }
132 0 elsif ($lastRole eq $sign) { }
86 288 198 if ($difference > 0) { }
198 0 elsif ($difference == 0) { }
88 243 45 if ($difference == 0)
102 32 100 if ($difference > 2)
112 529 198 if ($before) { }
128 0 0 $self->sign eq ('White', 'Black')[1] ? :
0 0 $self->sign eq ('White', 'Black')[0] ? :
146 2162 4681 if defined $difference
165 0 76723 if $expando{$sign}
184 298 3656 if $diff > 2
186 3322 632 if (@lastRoles == 2)
187 1029 2293 if $lastRoles[0] eq $lastRoles[1]
204 29104 1512 if $self->sign
206 3909 26707 if (@lastRoles == 2 and $lastRoles[0] eq $lastRoles[1])
241 727 34615 if (defined $lastTwo) { }
31130 3485 elsif ($self->{'lastTwo'}) { }