| 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
Condition66%2/3
$now->mon == 12 and $now->mday == 24
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
| |||||||||||||||||||||||||||||
| 13 | 1 | return $self->SUPER::transform(@buddies); | |||||||||||||||||||||||||||
| 14 | } | ||||||||||||||||||||||||||||