Branch Coverage

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


line true false branch
59 141 172 if scalar @untie == 1
69 17520 90205 if ($v eq $A) { }
18498 71707 elsif ($v eq $B) { }
87 139 2485 if ($I->BallotSet->{'options'}{'range'}) { }
103 313 2311 if ($diff == 0)
105 141 172 if ($untied)
106 62 79 if $untied eq $A
107 79 62 if $untied eq $B
110 172 2452 if ($diff == 0) { }
1268 1184 elsif ($diff > 0) { }
1184 0 elsif ($diff < 0) { }
124 2452 172 if ($retval{'winner'}) { }
158 808 5240 if $B eq $A
159 2437 2803 if ($A eq $self->{'Matrix'}{$A}{$B}{'winner'})
160 366 4874 if ($self->{'Matrix'}{$A}{$B}{'tie'})
162 139 669 if ($scores->{$A} == 0)
173 8 2 if ($scored{$A} == $lowscore)
185 11 38 if $score < 1
49 145 if ($nowins) { }
186 32 113 if $score == 0
199 2 311 unless (&max(values %$scores))
205 43 151 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 6 2 if $winner
318 10 5 if (scalar keys %$proposal == $cntchoice)
343 0 117 defined $options->{'topcount'} ? :
344 0 117 if $o_topcount
351 0 834 $o_topcount ? :
354 834 6268 if ($A eq $B) { }
2933 3335 elsif ($self->{'Matrix'}{$A}{$B}{'winner'} eq $A) { }
2933 402 elsif ($self->{'Matrix'}{$A}{$B}{'winner'} eq $B) { }
402 0 elsif ($self->{'Matrix'}{$A}{$B}{'tie'}) { }
366 0 834 if $o_topcount
380 728 5678 if $Opponent eq $Choice
383 2641 3037 if ($self->{'Matrix'}{$Choice}{$Opponent}{'winner'} eq $Choice)
386 2641 3037 if ($self->{'Matrix'}{$Choice}{$Opponent}{'winner'} eq $Opponent)