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