Conveyor/YAML/Active/CurrentDateYYYYMMDD.pm

filter: Statementstmt 64.0% 16 / 25 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 6 / 8 Podpod 100% 1 / 1 totaltotal 57.5% 23 / 40 CC 4 SCAR 20.8
CC
4
Cov
52%
yaml_activate
20.0
__ANON__
2.0
BEGIN
1.0
CRAP 8.0
« Conveyor/Service/Util.pm ↑ Summary Conveyor/Storage/DBI/Core/Setup.pm »
1 1 ▶use 5.008;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package Data::Conveyor::YAML::Active::CurrentDateYYYYMMDD;
6 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 $Data::Conveyor::YAML::Active::CurrentDateYYYYMMDD::VERSION = '1.103130';
8 }
9 # ABSTRACT: Stage-based conveyor-belt-like ticket handling system
10  
11 1 ▶use YAML::Active qw/assert_hashref hash_activate/;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use parent 'Class::Scaffold::YAML::Active';
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 0 ▶sub yaml_activate {
Subroutine yaml_activate: not called CC=4 SCAR=30.0
Pod documented
15 0 my ($self, $phase) = @_;
16 0 assert_hashref($self);
17 0 my $hash = hash_activate($self, $phase);
18 0 ▶ my ($y, $m, $d) = sub { $_[5] + 1900, $_[4] + 1, $_[3] }
Subroutine __ANON__: not called CC=1 SCAR=6.9
19 0 ->(localtime);
20 0 ▶ exists $hash->{year} and $y += $hash->{year};
Branch: 1 branch
BranchTrueFalseTotal
exists $hash->{"year"} and $y += $hash->{"year"} 0 0 0
21 0 ▶ exists $hash->{month} and $m += $hash->{month};
Branch: 1 branch
BranchTrueFalseTotal
exists $hash->{"month"} and $m += $hash->{"month"} 0 0 0
22 0 ▶ exists $hash->{day} and $d += $hash->{day};
Branch: 1 branch
BranchTrueFalseTotal
exists $hash->{"day"} and $d += $hash->{"day"} 0 0 0
23 0 sprintf "%4d%02d%02d", $y, $m, $d;
24 }
25 1 1;
26  
27  
28 __END__
« Conveyor/Service/Util.pm ↑ Summary Conveyor/Storage/DBI/Core/Setup.pm »