Branch Coverage

lib/BalanceOfPower/Role/Broker.pm
Criterion Covered Total %
branch 24 46 52.1


line true false branch
20 1 1 if ($command eq 'buy') { }
1 0 elsif ($command eq 'sell') { }
39 0 3 if ($nation_obj->available_stocks < $q)
41 0 0 unless $dry_run
45 0 3 if ($q > 4)
49 1 2 if ($self->at_civil_war($nation))
51 0 1 unless $dry_run
55 1 1 if $dry_run
60 0 1 if ($player_obj->money < $global_cost)
62 0 0 unless $dry_run
83 0 2 if ($player_obj->stocks($nation) < $q)
85 0 0 unless $dry_run
89 0 2 if ($self->at_civil_war($nation))
91 0 0 unless $dry_run
95 1 1 if $dry_run
150 2 8 if (@p_orders)
152 0 2 if $dry_run
158 0 45 if $dry_run
163 0 2 if $dry_run
165 0 2 if $dry_run
170 2 0 unless $dry_run
171 2 0 unless (@{$orders{$chosen_player};})
175 0 2 if $dry_run