Branch Coverage

blib/lib/Vote/Count/Method/CondorcetDropping.pm
Criterion Covered Total %
branch 35 40 87.5


line true false branch
125 17 13 if ($rule =~ /(plurality|topcount)/u) { }
3 10 elsif ($rule eq 'approval') { }
8 2 elsif ($rule eq 'borda') { }
1 1 elsif ($rule eq 'greatestloss') { }
151 16 12 if $roundvotes{$j} < $lowest
154 11 17 if ($roundvotes{$j} == $lowest)
170 3 7 if ($self->DropStyle eq 'leastwins')
175 7 3 if ($self->DropRule =~ /(plurality|topcount)/u) { }
1 2 elsif ($self->DropRule eq 'approval') { }
2 0 elsif ($self->DropRule eq 'borda') { }
0 0 elsif ($self->DropRule eq 'greatestloss') { }
196 9 1 unless (defined $active)
204 0 25 if $roundctr > $maxround
209 7 18 if (defined $majority->{'winner'})
219 2 16 if ($cw)
226 1 15 $self->SkipLoserDrop ? :
230 7 9 if ($eliminated->{'eliminations'})
238 3 6 if ($self->DropStyle eq 'leastwins') { }
247 0 9 if (@remaining == 0) { }
1 8 elsif (@remaining == 1) { }