| 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
Condition0%0/3
$nation->internal_disorder > 30 and $nation->production_for_domestic > 50
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
| |||||||||||||||||||||||||||||
| 14 | { | ||||||||||||||||||||||||||||
| 15 | 0 | return "LOWER DISORDER"; | |||||||||||||||||||||||||||
| 16 | } | ||||||||||||||||||||||||||||
| 17 | else | ||||||||||||||||||||||||||||
| 18 | { | ||||||||||||||||||||||||||||
| 19 | 0 | return undef; | |||||||||||||||||||||||||||
| 20 | } | ||||||||||||||||||||||||||||
| 21 | } | ||||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||
| 23 | 11 | 1; | |||||||||||||||||||||||||||