lib/BalanceOfPower/Commands/BoostProduction.pm

filter: Statementstmt 100% 14 / 14 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 95.0% 19 / 20 CC 2 SCAR 4.1
CC
2
Cov
100%
IA
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« lib/BalanceOfPower/Role/Herald.pm ↑ Summary lib/BalanceOfPower/Relations/MilitarySupport.pm »
1 package BalanceOfPower::Commands::BoostProduction;
2 11 $BalanceOfPower::Commands::BoostProduction::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 19 ▶ my $self = shift;
Subroutine IA: called CC=2 SCAR=6.9
Pod undocumented
12 19 my $nation = $self->get_nation();
13 19 ▶ if($nation->production < EMERGENCY_PRODUCTION_LIMIT)
Branch: 1 branch
BranchTrueFalseTotal
if ($nation->production < 55) { } 5 14 19
14 {
15 5 return "BOOST PRODUCTION"
16 }
17 else
18 {
19 14 return undef;
20 }
21 }
22  
23 11 1;
« lib/BalanceOfPower/Role/Herald.pm ↑ Summary lib/BalanceOfPower/Relations/MilitarySupport.pm »