Branch Coverage

blib/lib/Vote/Count/Method/CondorcetDropping.pm
Criterion Covered Total %
branch 29 38 76.3


line true false branch
78 21 9 if ($rule =~ /(plurality|topcount)/u) { }
2 7 elsif ($rule eq 'approval') { }
7 0 elsif ($rule eq 'boorda') { }
0 0 elsif ($rule eq 'greatestloss') { }
104 24 23 if $roundvotes{$j} < $lowest
107 16 31 if ($roundvotes{$j} == $lowest)
121 4 5 if ($self->DropStyle eq 'leastwins')
126 6 3 if ($self->DropRule =~ /(plurality|topcount)/u) { }
1 2 elsif ($self->DropRule eq 'approval') { }
2 0 elsif ($self->DropRule eq 'boorda') { }
0 0 elsif ($self->DropRule eq 'greatestloss') { }
148 9 0 unless (defined $active)
155 0 30 if $roundctr > $maxround
160 6 24 if (defined $majority->{'winner'})
168 2 22 if ($cw)
175 8 14 if ($eliminated->{'eliminations'})
184 7 7 if ($self->DropStyle eq 'leastwins') { }
192 0 14 if (@remaining == 0) { }
1 13 elsif (@remaining == 1) { }