lib/BalanceOfPower/Role/Herald.pm

filter: Statementstmt 48.0% 12 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 46.8% 15 / 32 CC 3 SCAR 13.5
CC
3
Cov
48%
broadcast_event
6.0
send_event
6.0
BEGIN
1.0
CRAP 3.9
« blib/lib/BalanceOfPower/Role/GameMaster.pm ↑ Summary lib/BalanceOfPower/Role/GameMaster.pm »
1 package BalanceOfPower::Role::Herald;
2 11 $BalanceOfPower::Role::Herald::VERSION = '0.300010';
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 0 ▶ my $self = shift;
Subroutine broadcast_event: not called CC=2 SCAR=17.9
Pod undocumented
14 0 my $event = shift;
15 0 my @nations = @_;
16 0 $self->register_event($event);
17 0 for(@nations)
18 {
19 0 my $nation = $self->get_nation($_);
20 0 $nation->register_event($event);
21 }
22 }
23 sub send_event
24 {
25 0 ▶ my $self = shift;
Subroutine send_event: not called CC=2 SCAR=17.9
Pod undocumented
26 0 my $event = shift;
27 0 my @nations = @_;
28 0 for(@nations)
29 {
30 0 my $nation = $self->get_nation($_);
31 0 $nation->register_event($event);
32 }
33  
34 }
35 11 1;
« blib/lib/BalanceOfPower/Role/GameMaster.pm ↑ Summary lib/BalanceOfPower/Role/GameMaster.pm »