Branch Coverage

blib/lib/Vote/Count/Matrix.pm
Criterion Covered Total %
branch 80 86 93.0


line true false branch
59 177 172 if scalar @untie == 1
69 17961 92328 if ($v eq $A) { }
18509 73819 elsif ($v eq $B) { }
87 139 2617 if ($I->BallotSet->{'options'}{'range'}) { }
103 349 2407 if ($diff == 0)
105 177 172 if ($untied)
106 90 87 if $untied eq $A
107 87 90 if $untied eq $B
110 172 2584 if ($diff == 0) { }
1284 1300 elsif ($diff > 0) { }
1300 0 elsif ($diff < 0) { }
124 2584 172 if ($retval{'winner'}) { }
158 808 5240 if $B eq $A
159 2433 2807 if ($A eq $self->{'Matrix'}{$A}{$B}{'winner'})
160 374 4866 if ($self->{'Matrix'}{$A}{$B}{'tie'})
162 139 669 if ($scores->{$A} == 0)
173 8 2 if ($scored{$A} == $lowscore)
185 11 28 if $score < 1
39 160 if ($nowins) { }
186 32 128 if $score == 0
199 2 311 unless (&max(values %$scores))
205 43 156 if (&$loser($scores->{$A}))
214 9 8 scalar @eliminated ? :
234 32 402 if ($scores->{$c} == $mustwin)
246 26 264 if $B eq $A
249 111 153 if ($result{'loser'} eq $A)
250 42 69 if $result{'margin'} > $bigloss
258 1 1 unless defined $active
273 258 303 if ($matrix->{$h}{$P}{'winner'} eq $P) { }
35 268 elsif ($matrix->{$h}{$P}{'tie'}) { }
289 12 2 if $winner
318 10 5 if (scalar keys %$proposal == $cntchoice)
343 0 119 defined $options->{'topcount'} ? :
344 0 119 if $o_topcount
351 0 858 $o_topcount ? :
354 858 6532 if ($A eq $B) { }
3065 3467 elsif ($self->{'Matrix'}{$A}{$B}{'winner'} eq $A) { }
3065 402 elsif ($self->{'Matrix'}{$A}{$B}{'winner'} eq $B) { }
402 0 elsif ($self->{'Matrix'}{$A}{$B}{'tie'}) { }
366 0 858 if $o_topcount
380 752 5942 if $Opponent eq $Choice
383 2773 3169 if ($self->{'Matrix'}{$Choice}{$Opponent}{'winner'} eq $Choice)
386 2773 3169 if ($self->{'Matrix'}{$Choice}{$Opponent}{'winner'} eq $Opponent)