Branch Coverage

blib/lib/Vote/Count/Matrix.pm
Criterion Covered Total %
branch 44 50 88.0


line true false branch
50 1186 7719 if ($v eq $A) { }
1211 6508 elsif ($v eq $B) { }
68 33 536 if ($countA == $countB) { }
224 312 elsif ($countA > $countB) { }
312 0 elsif ($countB > $countA) { }
108 509 2658 if $B eq $A
109 1282 1376 if ($A eq $self->{'Matrix'}{$A}{$B}{'winner'})
110 94 2564 if ($self->{'Matrix'}{$A}{$B}{'tie'})
112 58 451 if ($scores->{$A} == 0)
123 19 13 if ($scored{$A} == $lowscore)
144 1 291 unless (&max(values %$scores))
150 35 163 if ($scores->{$A} == 0)
159 9 14 scalar @eliminated ? :
179 5 168 if ($scores->{$c} == $mustwin)
189 63 78 if ($matrix->{$h}{$P}{'winner'} eq $P) { }
5 73 elsif ($matrix->{$h}{$P}{'tie'}) { }
224 3 1 if (scalar keys %$proposal == $cntchoice)
236 0 24 defined $options->{'topcount'} ? :
237 0 24 if $o_topcount
244 0 135 $o_topcount ? :
247 135 778 if ($A eq $B) { }
379 399 elsif ($self->{'Matrix'}{$A}{$B}{'winner'} eq $A) { }
379 20 elsif ($self->{'Matrix'}{$A}{$B}{'winner'} eq $B) { }
20 0 elsif ($self->{'Matrix'}{$A}{$B}{'tie'}) { }
259 0 135 if $o_topcount