Branch Coverage

lib/BalanceOfPower/CivilWar.pm
Criterion Covered Total %
branch 25 44 56.8


line true false branch
58 2 15 if ($self->nation->army >= 2)
63 0 17 if ($self->nation->government eq 'dictatorship')
69 2 15 if ($reb_sup = $world->rebel_supported($self->nation_name))
73 2 15 if ($sup = $world->supported($self->nation_name))
77 2 15 if ($reb_sup)
81 1 16 if ($sup and $reb_sup)
85 4 13 if ($government > $rebels) { }
11 2 elsif ($rebels > $government) { }
87 0 4 if ($reb_sup)
90 0 0 if $reb_sup->army == 0
97 0 11 if ($sup)
100 0 0 if $sup->army == 0
115 4 11 if ($battle_winner eq 'government') { }
11 0 elsif ($battle_winner eq 'rebels') { }
123 0 15 if ($self->rebel_provinces == 0) { }
2 13 elsif ($self->rebel_provinces == [2..4]->[$self->nation->size]) { }
140 2 0 if ($winner eq 'rebels') { }
0 0 elsif ($winner eq 'government') { }
144 0 2 if ($rebsup)
147 0 0 if $rebel_supporter
167 0 0 if ($rebsup)
170 0 0 if $rebel_supporter