Branch Coverage

blib/lib/Vote/Count/Matrix.pm
Criterion Covered Total %
branch 79 86 91.8


line true false branch
58 35 158 if scalar @untie == 1
68 16737 81618 if ($v eq $A) { }
17580 64038 elsif ($v eq $B) { }
86 133 1985 if ($I->BallotSet->{'options'}{'range'}) { }
102 193 1925 if ($diff == 0)
104 35 158 if ($untied)
105 15 20 if $untied eq $A
106 20 15 if $untied eq $B
109 158 1960 if ($diff == 0) { }
981 979 elsif ($diff > 0) { }
979 0 elsif ($diff < 0) { }
123 1960 158 if ($retval{'winner'}) { }
157 808 5240 if $B eq $A
158 2434 2806 if ($A eq $self->{'Matrix'}{$A}{$B}{'winner'})
159 372 4868 if ($self->{'Matrix'}{$A}{$B}{'tie'})
161 140 668 if ($scores->{$A} == 0)
172 8 2 if ($scored{$A} == $lowscore)
184 11 30 if $score < 1
41 142 if ($nowins) { }
185 32 110 if $score == 0
198 2 311 unless (&max(values %$scores))
204 43 140 if (&$loser($scores->{$A}))
213 9 8 scalar @eliminated ? :
233 32 402 if ($scores->{$c} == $mustwin)
245 26 264 if $B eq $A
248 111 153 if ($result{'loser'} eq $A)
249 42 69 if $result{'margin'} > $bigloss
257 1 1 unless defined $active
272 258 303 if ($matrix->{$h}{$P}{'winner'} eq $P) { }
35 268 elsif ($matrix->{$h}{$P}{'tie'}) { }
288 2 0 if $winner
317 10 5 if (scalar keys %$proposal == $cntchoice)
342 0 107 defined $options->{'topcount'} ? :
343 0 107 if $o_topcount
350 0 733 $o_topcount ? :
353 733 5256 if ($A eq $B) { }
2441 2815 elsif ($self->{'Matrix'}{$A}{$B}{'winner'} eq $A) { }
2441 374 elsif ($self->{'Matrix'}{$A}{$B}{'winner'} eq $B) { }
374 0 elsif ($self->{'Matrix'}{$A}{$B}{'tie'}) { }
365 0 733 if $o_topcount
379 627 4666 if $Opponent eq $Choice
382 2149 2517 if ($self->{'Matrix'}{$Choice}{$Opponent}{'winner'} eq $Choice)
385 2149 2517 if ($self->{'Matrix'}{$Choice}{$Opponent}{'winner'} eq $Opponent)