MilkyHolmes.pm

filter: Statementstmt 100% 51 / 51 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 13 / 13 Podpod 100% 2 / 2 totaltotal 100% 68 / 68 CC 3 SCAR 3.4
CC
3
Cov
100%
members_of
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« MilkyHolmes/Character.pm ↑ Summary MilkyHolmes/Character/KazumiTokiwa.pm »
1 package Acme::MilkyHolmes;
2 3 ▶use 5.008005;
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 parent qw(Exporter);
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 our $VERSION = "0.07";
8  
9 3 ▶use Acme::MilkyHolmes::Character::SherlockShellingford;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 ▶use Acme::MilkyHolmes::Character::NeroYuzurizaki;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 3 ▶use Acme::MilkyHolmes::Character::HerculeBarton;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 3 ▶use Acme::MilkyHolmes::Character::CordeliaGlauca;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 3 ▶use Acme::MilkyHolmes::Character::KazumiTokiwa;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 3 ▶use Acme::MilkyHolmes::Character::AliceMyojingawa;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 3 ▶use Readonly;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 3 Readonly our $MilkyHolmesFeathers => [
18 'KazumiTokiwa',
19 'AliceMyojingawa',
20 ];
21 3 Readonly our $MilkyHolmes => [
22 'SherlockShellingford',
23 'NeroYuzurizaki',
24 'HerculeBarton',
25 'CordeliaGlauca',
26 ];
27 Readonly our $MilkyHolmesSisters => [
28 3 @{ $MilkyHolmes },
29 3 @{ $MilkyHolmesFeathers },
30 ];
31  
32 3 our @EXPORT_OK = qw($MilkyHolmes $MilkyHolmesFeathers $MilkyHolmesSisters);
33  
34  
35 2 ▶sub members {
Subroutine members: called CC=1 SCAR=0.0
Pod documented
36 2 my ($class, %options) = @_;
37 2 return $class->members_of($MilkyHolmes, %options);
38 }
39  
40 8 ▶sub members_of {
Subroutine members_of: called CC=3 SCAR=11.0
Pod documented
41 8 my ($class, $team, %options) = @_;
42  
43 8 my @members = ();
44 8 for my $member_name ( @{ $team } ) {
45 32 my $pkg = "Acme::MilkyHolmes::Character::$member_name";
46 32 my $member = $pkg->new();
47 32 ▶ $member->locale($options{locale}) if ( exists $options{locale} );
Branch: 1 branch
BranchTrueFalseTotal
if exists $options{"locale"} 16 16 32
48 32 push @members, $member;
49 }
50 8 return @members;
51 }
52  
53  
54 3 1;
55 __END__
« MilkyHolmes/Character.pm ↑ Summary MilkyHolmes/Character/KazumiTokiwa.pm »