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 ? :
58 1886 45 unless $args{'sign'}
59 1903 28 unless $args{'difference'}
77 22 727 unless $roles->[-1] and &any(sub { $roles->[-1] eq $_; } , ('White', 'Black'))
82 24 245 if $before and $oneBeforeThat and $oneBeforeThat eq $before and $before eq $lastRole
87 109 618 if (not $sign && defined $difference) { }
490 128 elsif ($lastRole eq $otherDirection) { }
128 0 elsif ($lastRole eq $sign) { }
92 288 202 if ($difference > 0) { }
202 0 elsif ($difference == 0) { }
94 243 45 if ($difference == 0)
108 32 96 if ($difference > 2)
118 529 198 if ($before) { }
134 0 0 $self->sign eq ('White', 'Black')[1] ? :
0 0 $self->sign eq ('White', 'Black')[0] ? :
152 2048 4681 if defined $difference
171 0 76486 if $expando{$sign}
190 298 3656 if $diff > 2
192 3322 632 if (@lastRoles == 2)
193 1029 2293 if $lastRoles[0] eq $lastRoles[1]
210 29063 1512 if $self->sign
212 3909 26666 if (@lastRoles == 2 and $lastRoles[0] eq $lastRoles[1])
247 727 34574 if (defined $lastTwo) { }
31130 3444 elsif ($self->{'lastTwo'}) { }