blib/lib/Acme/PriPara.pm

filter: Statementstmt 100% 31 / 31 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 2 totaltotal 92.8% 39 / 42 SCAR 11.0
CC
3
Cov
97%
members_of
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« blib/lib/Acme/PriPara/MainMembers/HojoSophy.pm ↑ Summary blib/lib/Acme/PriPara/MainMembers/DorothyWest.pm »
1 package Acme::PriPara;
2 3 ▶use 5.008001;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 our $VERSION = "0.02";
8  
9 3 ▶use Readonly;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 3 Readonly our $Laara_and_Mirei => [
12 'ManakaLaara',
13 'MinamiMirei',
14 ];
15 3 Readonly our $SoLaMi_Smile => [
16 @$Laara_and_Mirei,
17 'HojoSophy',
18 ];
19  
20 3 Readonly our $Dorothy_and_Reona => [
21 'DorothyWest',
22 'ReonaWest',
23 ];
24 3 Readonly our $Dressing_Pafé => [
25 'TodoSion',
26 @$Dorothy_and_Reona,
27 ];
28  
29 3 Readonly our $MainMembers => [
30 @$SoLaMi_Smile,
31 @$Dressing_Pafé,
32 ];
33  
34 sub main_members {
35 1 ▶ my $self = shift;
Subroutine main_members: called CC=1 SCAR=0.0
Pod undocumented
36 1 return $self->members_of($MainMembers);
37 }
38  
39 sub members_of {
40 5 ▶ my ($self, $team) = @_;
Subroutine members_of: called CC=3 SCAR=11.0
Pod undocumented
41 5 my @members;
42 5 for my $member_name (@{ $team }) {
43 16 my $pkg = "Acme::PriPara::MainMembers::$member_name";
44 16 ▶ if (eval "require $pkg;1;") {
Branch: 1 branch
BranchTrueFalseTotal
if (eval "require $pkg;1;") 16 0 16
45 16 push @members, $pkg->new;
46 }
47 }
48 5 return @members;
49 }
50  
51 3 1;
52 __END__
« blib/lib/Acme/PriPara/MainMembers/HojoSophy.pm ↑ Summary blib/lib/Acme/PriPara/MainMembers/DorothyWest.pm »