File Coverage

blib/lib/Acme/PrettyCure/Girl/CureFlower.pm
Criterion Covered Total %
statement 9 14 64.2
branch n/a
condition n/a
subroutine 3 8 37.5
pod 0 5 0.0
total 12 27 44.4


line stmt bran cond sub pod time code
1             package Acme::PrettyCure::Girl::CureFlower;
2 1     1   33634 use utf8;
  1         2  
  1         7  
3 1     1   979 use Moo;
  1         22199  
  1         5  
4 1     1   1637 use Time::Piece;
  1         1  
  1         9  
5              
6             with 'Acme::PrettyCure::Girl::Role';
7              
8 0     0 0   sub human_name {'花咲薫子'}
9 0     0 0   sub precure_name {'キュアフラワー'}
10 0     0 0   sub age { 67 }
11 0     0 0   sub challenge { qw(聖なる光に輝く一輪の花、キュアフラワー!) }
12 0     0 0   sub image_url { '' }
13              
14             before 'transform' => sub {
15             my ($self,) = @_;
16              
17             my $now = localtime;
18             unless ( $now->mon == 12 && $now->mday == 24 ) {
19             die "CureFlower can transform only holy night";
20             }
21             };
22              
23             1;