blib/lib/BalanceOfPower/Commands/LowerDisorder.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 22 CC 2 SCAR 13.9
CC
2
Cov
0%
IA
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 4.0
1 package BalanceOfPower::Commands::LowerDisorder;
2 $BalanceOfPower::Commands::LowerDisorder::VERSION = '0.300010';
3 use Moo;
4  
5 use BalanceOfPower::Constants ":all";
6  
7 extends 'BalanceOfPower::Commands::NoArgs';
8  
9 sub IA
10 {
11 my $self = shift;
12 my $nation = $self->get_nation();
13 if($nation->internal_disorder > WORRYING_LIMIT && $nation->production_for_domestic > DOMESTIC_BUDGET)
14 {
15 return "LOWER DISORDER";
16 }
17 else
18 {
19 return undef;
20 }
21 }
22  
23 1;