lib/BalanceOfPower/Commands/LowerDisorder.pm

filter: Statementstmt 100% 14 / 14 Branchbran 100% 2 / 2 Conditioncond 66.6% 2 / 3 MC/DCmcdc 50.0% 1 / 2 Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 88.0% 22 / 25 CC 3 SCAR 7.9
CC
3
Cov
95%
IA
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.2
« lib/BalanceOfPower/Executive.pm ↑ Summary lib/BalanceOfPower/Commands/MilitaryAid.pm »
1 package BalanceOfPower::Commands::LowerDisorder;
2 11 $BalanceOfPower::Commands::LowerDisorder::VERSION = '0.200000';
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 16 ▶ my $self = shift;
Subroutine IA: called CC=3 SCAR=11.0
Pod undocumented
12 16 my $nation = $self->get_nation();
13 16 ▶ 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) { } 2 14 16
Condition66%2/3
$nation->internal_disorder > 30 and $nation->production_for_domestic > 50
!ll&&!rl&&r
1402
MC/DC50%1/2
$nation->internal_disorder > 30 and $nation->production_for_domestic > 50
$nation->internal_disorder > 30 $nation->production_for_domestic > 50
Truth table66%2/3
A and B
A= $nation->internal_disorder > 30B= $nation->production_for_domestic > 50
ABresult
0X0
100
111
14 {
15 2 return "LOWER DISORDER";
16 }
17 else
18 {
19 14 return undef;
20 }
21 }
22  
23 11 1;
« lib/BalanceOfPower/Executive.pm ↑ Summary lib/BalanceOfPower/Commands/MilitaryAid.pm »