lib/BalanceOfPower/Role/Herald.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 93.7% 30 / 32 CC 3 SCAR 4.5
CC
3
Cov
100%
broadcast_event
2.0
send_event
2.0
BEGIN
1.0
CRAP 1.6
« lib/BalanceOfPower/Role/GameMaster.pm ↑ Summary lib/BalanceOfPower/Commands/BoostProduction.pm »
1 package BalanceOfPower::Role::Herald;
2 11 $BalanceOfPower::Role::Herald::VERSION = '0.200000';
3 11 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 11 ▶use v5.10;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 11 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 11 with 'BalanceOfPower::Role::Reporter';
8  
9 11 requires 'get_nation';
10  
11 sub broadcast_event
12 {
13 375 ▶ my $self = shift;
Subroutine broadcast_event: called CC=2 SCAR=6.9
Pod undocumented
14 375 my $event = shift;
15 375 my @nations = @_;
16 375 $self->register_event($event);
17 375 for(@nations)
18 {
19 493 my $nation = $self->get_nation($_);
20 493 $nation->register_event($event);
21 }
22 }
23 sub send_event
24 {
25 4 ▶ my $self = shift;
Subroutine send_event: called CC=2 SCAR=6.9
Pod undocumented
26 4 my $event = shift;
27 4 my @nations = @_;
28 4 for(@nations)
29 {
30 4 my $nation = $self->get_nation($_);
31 4 $nation->register_event($event);
32 }
33  
34 }
35 11 1;
« lib/BalanceOfPower/Role/GameMaster.pm ↑ Summary lib/BalanceOfPower/Commands/BoostProduction.pm »