lib/BalanceOfPower/Commands/TargetRoute.pm

filter: Statementstmt 50.0% 9 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod 0.0% 0 / 2 totaltotal 45.8% 11 / 24 CC 2 SCAR 11.6
CC
2
Cov
50%
select_message
6.0
get_available_targets
2.0
BEGIN
1.0
CRAP 3.2
« lib/BalanceOfPower/Role/Diplomat.pm ↑ Summary blib/lib/BalanceOfPower/Commands/AidInsurgents.pm »
1 package BalanceOfPower::Commands::TargetRoute;
2 11 $BalanceOfPower::Commands::TargetRoute::VERSION = '0.200000';
3 11 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 11 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 11 extends 'BalanceOfPower::Commands::TargetNation';
7  
8 sub select_message
9 {
10 0 ▶ my $self = shift;
Subroutine select_message: not called CC=2 SCAR=17.9
Pod undocumented
11 0 my $message = "";
12 0 foreach my $tr ($self->world->routes_for_node($self->actor))
13 {
14 0 $message .= $tr->print($self->actor) . "\n";
15 }
16 0 $message .= "\n";
17 0 $message .= "Select traderoute:\n";
18 0 return $message;
19 }
20  
21 sub get_available_targets
22 {
23 0 ▶ my $self = shift;
Subroutine get_available_targets: not called CC=1 SCAR=6.9
Pod undocumented
24 0 return $self->world->route_destinations_for_node($self->actor);
25 }
26  
27  
28  
29 11 1;
30  
« lib/BalanceOfPower/Role/Diplomat.pm ↑ Summary blib/lib/BalanceOfPower/Commands/AidInsurgents.pm »