blib/lib/Acme/PrettyCure/Girl/CurePeace.pm

filter: Statementstmt 92.5% 25 / 27 Branchbran 75.0% 3 / 4 Conditioncond 100% 2 / 2 MC/DCmcdc 100% 1 / 1 Subroutinesub 83.3% 10 / 12 Podpod 0.0% 0 / 7 totaltotal 77.3% 41 / 53 CC 4 SCAR 5.2
CC
4
Cov
91%
challenge_with_jankenpon
3.0
__ANON__
2.1
age
2.0
CRAP 1.7
« blib/lib/Acme/PrettyCure/Girl/CureSword.pm ↑ Summary blib/lib/Acme/PrettyCure/Girl/CureWhite.pm »
1 package Acme::PrettyCure::Girl::CurePeace;
2 4 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 4 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 4 ▶use Math::Random::MT;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 4 with qw/Acme::PrettyCure::Girl::Role Acme::PrettyCure::Girl::Role::Smile/;
8  
9 has janken_db => (
10 is => 'ro',
11 5 ▶ isa => sub { die "$_[0] is not ArrayRef" if ref($_[0]) ne 'ARRAY' },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
if ref $_[0] ne "ARRAY" 0 5 5
12 default => sub {
13 [
14 5 ▶ qw(0 0 チョキ パー グー チョキ チョキ グー チョキ パー グー パー
Subroutine __ANON__: called CC=1 SCAR=0.0
15 チョキ グー パー グー パー チョキ チョキ パー グー パー チョキ
16 パー チョキ パー パー グー チョキ グー パー 0 グー パー チョキ
17 グー パー グッチョッパー 0 0 チョキ 0 0 0 チョキ 0 0 0)
18 ];
19 },
20 4 );
21  
22 2 ▶sub human_name {'黄瀬やよい'}
Subroutine human_name: called CC=1 SCAR=0.0
Pod undocumented
23 2 ▶sub precure_name {'キュアピース'}
Subroutine precure_name: called CC=1 SCAR=0.0
Pod undocumented
24 0 ▶sub age {14}
Subroutine age: not called CC=1 SCAR=6.9
Pod undocumented
25 107 ▶sub challenge { 'ピカピカぴかりんじゃんけんぽん♪ キュアピース!' }
Subroutine challenge: called CC=1 SCAR=0.0
Pod undocumented
26 sub challenge_with_jankenpon {
27 105 ▶ my ($self, $story_no) = @_;
Subroutine challenge_with_jankenpon: called CC=3 SCAR=11.0
Pod undocumented
28  
29 105 my $gen = Math::Random::MT->new();
30 105 ▶ my $jankenpon = $story_no ? $self->janken_db->[$story_no-1]
Branch: 1 branch
BranchTrueFalseTotal
$story_no ? : 5 100 105
31 : ( qw/グー チョキ パー/ )[ $gen->rand(3) ];
32 105 ▶ $jankenpon ||= "";
Condition100%2/2
$jankenpon ||= ""
l!l
1032
MC/DC100%1/1
$jankenpon ||= ""
$jankenpon
Truth table100%2/2
A
A= $jankenpon
Aresult
11
00
33 105 my $words = $_[0]->challenge();
34 105 $words =~ s/(?=♪)/($jankenpon)/;
35 105 return $words;
36 }
37 2 ▶sub color { 226 }
Subroutine color: called CC=1 SCAR=0.0
Pod undocumented
38 0 ▶sub image_url { 'http://www.toei-anim.co.jp/tv/precure/images/character/c3_1.jpg' }
Subroutine image_url: not called CC=1 SCAR=6.9
Pod undocumented
39  
40 4 1;
« blib/lib/Acme/PrettyCure/Girl/CureSword.pm ↑ Summary blib/lib/Acme/PrettyCure/Girl/CureWhite.pm »