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) { }
492 126 elsif ($lastRole eq $otherDirection) { }
126 0 elsif ($lastRole eq $sign) { }
86 288 204 if ($difference > 0) { }
204 0 elsif ($difference == 0) { }
88 243 45 if ($difference == 0)
102 32 94 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 2235 4681 if defined $difference
165 0 76757 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 29091 1512 if $self->sign
206 3909 26694 if (@lastRoles == 2 and $lastRoles[0] eq $lastRoles[1])
241 727 34602 if (defined $lastTwo) { }
31130 3472 elsif ($self->{'lastTwo'}) { }