Branch Coverage

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


line true false branch
67 15 236 if $nation->internal_disorder_status eq 'Civil war'
69 193 43 unless ($self->allowed_at_war)
71 8 185 if ($self->world->at_war($self->actor))
76 0 228 if (exists $self->production_limit->{'<'}) { }
0 228 elsif (exists $self->production_limit->{'>'}) { }
84 0 228 if (exists $self->army_limit->{'<'}) { }
41 187 elsif (exists $self->army_limit->{'>'}) { }
92 6 181 if ($nation->production_for_domestic < $self->domestic_cost)
96 4 177 if ($nation->production_for_export < $self->export_cost)
100 10 167 if ($nation->prestige < $self->prestige_cost)
104 13 154 if ($self->treaty_limit == 1)
106 0 13 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)) { }