Branch Coverage

lib/BalanceOfPower/Commands/Role/Command.pm
Criterion Covered Total %
branch 20 36 55.5


line true false branch
67 15 237 if $nation->internal_disorder_status eq 'Civil war'
69 198 39 unless ($self->allowed_at_war)
71 8 190 if ($self->world->at_war($self->actor))
76 0 229 if (exists $self->production_limit->{'<'}) { }
0 229 elsif (exists $self->production_limit->{'>'}) { }
84 0 229 if (exists $self->army_limit->{'<'}) { }
37 192 elsif (exists $self->army_limit->{'>'}) { }
92 9 183 if ($nation->production_for_domestic < $self->domestic_cost)
96 4 179 if ($nation->production_for_export < $self->export_cost)
100 17 162 if ($nation->prestige < $self->prestige_cost)
104 15 147 if ($self->treaty_limit == 1)
106 0 15 if ($self->world->get_treaties_for_nation($nation->name) >= $nation->treaty_limit)
120 0 0 unless defined $extract
122 0 0 if ($query =~ /^$name( (.*))?$/)
124 0 0 if ($extract) { }
135 0 0 if ($query =~ /^$syn( (.*))?/)
137 0 0 if ($extract) { }
154 0 0 if ($self->extract_argument($query, 0)) { }