lib/BalanceOfPower/Commands/LowerDisorder.pm

filter: Statementstmt 64.2% 9 / 14 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 1 totaltotal 44.0% 11 / 25 CC 3 SCAR 20.3
CC
3
Cov
47%
IA
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 7.6
« lib/BalanceOfPower/Printer.pm ↑ Summary lib/BalanceOfPower/Commands/MilitaryAid.pm »
1 package BalanceOfPower::Commands::LowerDisorder;
2 11 $BalanceOfPower::Commands::LowerDisorder::VERSION = '0.300010';
3 11 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 11 ▶use BalanceOfPower::Constants ":all";
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 11 extends 'BalanceOfPower::Commands::NoArgs';
8  
9 sub IA
10 {
11 0 ▶ my $self = shift;
Subroutine IA: not called CC=3 SCAR=24.8
Pod undocumented
12 0 my $nation = $self->get_nation();
13 0 ▶ if($nation->internal_disorder > WORRYING_LIMIT && $nation->production_for_domestic > DOMESTIC_BUDGET)
Branch: 1 branch
BranchTrueFalseTotal
if ($nation->internal_disorder > 30 and $nation->production_for_domestic > 50) { } 0 0 0
Condition0%0/3
$nation->internal_disorder > 30 and $nation->production_for_domestic > 50
!ll&&!rl&&r
000
MC/DC0%0/2
$nation->internal_disorder > 30 and $nation->production_for_domestic > 50
$nation->internal_disorder > 30 $nation->production_for_domestic > 50
Truth table0%0/3
A and B
A= $nation->internal_disorder > 30B= $nation->production_for_domestic > 50
ABresult
0X0
100
111
14 {
15 0 return "LOWER DISORDER";
16 }
17 else
18 {
19 0 return undef;
20 }
21 }
22  
23 11 1;
« lib/BalanceOfPower/Printer.pm ↑ Summary lib/BalanceOfPower/Commands/MilitaryAid.pm »