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

filter: Statementstmt 76.1% 16 / 21 Branchbran 50.0% 1 / 2 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 44.4% 4 / 9 Podpod 0.0% 0 / 5 totaltotal 52.3% 22 / 42 CC 3 SCAR 7.4
CC
3
Cov
69%
__ANON__
3.3
human_name
2.0
precure_name
2.0
CRAP 2.1
« blib/lib/Acme/PrettyCure.pm ↑ Summary blib/lib/Acme/PrettyCure/Girl/CureMelody.pm »
1 package Acme::PrettyCure::Girl::CureFlower;
2 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Time::Piece;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 with 'Acme::PrettyCure::Girl::Role';
7  
8 0 ▶sub human_name {'花咲薫子'}
Subroutine human_name: not called CC=1 SCAR=6.9
Pod undocumented
9 0 ▶sub precure_name {'キュアフラワー'}
Subroutine precure_name: not called CC=1 SCAR=6.9
Pod undocumented
10 0 ▶sub age { 67 }
Subroutine age: not called CC=1 SCAR=6.9
Pod undocumented
11 0 ▶sub challenge { qw(聖なる光に輝く一輪の花、キュアフラワー!) }
Subroutine challenge: not called CC=1 SCAR=6.9
Pod undocumented
12 0 ▶sub image_url { '' }
Subroutine image_url: not called CC=1 SCAR=6.9
Pod undocumented
13  
14 before 'transform' => sub {
15 1 ▶ my ($self,) = @_;
Subroutine __ANON__: called CC=3 SCAR=12.0
16  
17 1 my $now = localtime;
18 1 ▶ unless ( $now->mon == 12 && $now->mday == 24 ) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($now->mon == 12 and $now->mday == 24) 1 0 1
Condition33%1/3
$now->mon == 12 and $now->mday == 24
!ll&&!rl&&r
100
MC/DC0%0/2
$now->mon == 12 and $now->mday == 24
$now->mon == 12 $now->mday == 24
Truth table33%1/3
A and B
A= $now->mon == 12B= $now->mday == 24
ABresult
0X0
100
111
19 1 die "CureFlower can transform only holy night";
20 }
21 1 };
22  
23 1 1;
« blib/lib/Acme/PrettyCure.pm ↑ Summary blib/lib/Acme/PrettyCure/Girl/CureMelody.pm »