Branch Coverage

blib/lib/Vote/Count/Charge.pm
Criterion Covered Total %
branch 57 64 89.0


line true false branch
60 1 32 if ($I->WithdrawalList)
62 3 1 if defined $I->{'choice_status'}{$w}
72 31 2 unless ($I->TieBreakMethod)
76 1 32 if ($I->TieBreakMethod ne 'precedence')
82 32 1 unless (stat $I->PrecedenceFile)
101 1 33 unless ($self->BallotSetType eq 'rcv')
121 0 17412 if ($set->{$k}{'votevalue'} == 0)
129 631 16781 unless ($continue)
140 24 5 if ($choice) { }
145 2 10 if ($status->{'state'})
146 0 2 unless (grep /^$status->{'state'}$/u, @choice_valid_states)
151 11 1 if ($status->{'votes'})
159 5 19 if $I->{'choice_status'}{$k}{'state'} eq 'hopeful'
160 1 23 if $I->{'choice_status'}{$k}{'state'} eq 'pending'
183 0 0 if ($I->{'choice_status'}{$c}{'state'} eq 'defeated')
193 25 103 if ($I->{'choice_status'}{$c}{'state'} eq 'withdrawn')
209 7 1 unless (grep /^$choice$/u, @{$$I{'suspended'}})
222 2 0 unless (grep /^$choice$/u, @{$$I{'deferred'}})
233 1 1 if ($choice)
234 1 0 unless (grep /^$choice$/u, @{$$I{'pending'}})
245 1 3 unless @choices
275 9319 2501 if $I->TopChoice($B) ne $choice
277 1 2500 if ($charge == 0) { }
2344 156 elsif ($ballot->{'votevalue'} >= $charge) { }
311 5 19 unless $data
339 2 0 if ($I->FloorRule and $I->FloorThresshold)
340 1 1 if $I->FloorRule eq 'Approval'
341 1 1 if $I->FloorRule eq 'TopCount'
349 9 15 unless ($newactive->{$choice})
356 1 1 if $action eq 'Withdraw'
357 1 1 if $action eq 'Defeat'
369 7 2 if ($style eq 'droop')