PrettyCure/Girl/CureFlower.pm

filter: Statementstmt 100% 14 / 14 Branchbran 100% 2 / 2 Conditioncond 66.6% 2 / 3 MC/DCmcdc 50.0% 1 / 2 Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 92.5% 25 / 27 CC 3 SCAR 6.2
CC
3
Cov
95%
transform
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
« PrettyCure/Data.pm ↑ Summary PrettyCure/Girl/MilkyRose.pm »
1 # Made by author/generate-girls.pl. Her data is in Acme::PrettyCure::Data.
2 2 ▶use v5.44;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use experimental qw(class);
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶class Acme::PrettyCure::Girl::CureFlower :isa(Acme::PrettyCure::Girl);
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 ▶use Time::Piece ();
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 # She transforms only on the holy night.
10 2 ▶method transform (@buddies) {
Subroutine transform: called CC=3 SCAR=11.0
Pod documented
11 2 my $now = Time::Piece::localtime();
12 2 ▶ die "CureFlower can transform only holy night\n" unless $now->mon == 12 && $now->mday == 24;
Branch: 1 branch
BranchTrueFalseTotal
unless $now->mon == 12 and $now->mday == 24 1 1 2
Condition66%2/3
$now->mon == 12 and $now->mday == 24
!ll&&!rl&&r
011
MC/DC50%1/2
$now->mon == 12 and $now->mday == 24
$now->mon == 12 $now->mday == 24
Truth table66%2/3
A and B
A= $now->mon == 12B= $now->mday == 24
ABresult
0X0
100
111
13 1 return $self->SUPER::transform(@buddies);
14 }
« PrettyCure/Data.pm ↑ Summary PrettyCure/Girl/MilkyRose.pm »