Date.pm

filter: Statementstmt 100% 13 / 13 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 94.1% 16 / 17 CC 1 SCAR 0.0
CC
1
Cov
93%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« end_year.pm ↑ Summary split_date.pm »
1 package Catmandu::Fix::Date;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 our $VERSION = "0.0132";
4  
5 1 ▶use parent 'Exporter';
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 our @EXPORT;
7 1 @EXPORT = qw(
8 datetime_format
9 datetime_diff
10 end_day
11 end_week
12 end_year
13 split_date
14 start_day
15 start_week
16 start_year
17 timestamp
18 );
19  
20 1 foreach my $fix (@EXPORT) {
21 10 eval <<EVAL; ## no critic
22 require Catmandu::Fix::$fix;
23 Catmandu::Fix::$fix ->import( as => '$fix' );
24 EVAL
25 10 ▶ die "Failed to use Catmandu::Fix::$fix\n" if $@;
Branch: 1 branch
BranchTrueFalseTotal
if $@ 0 10 10
26 }
27  
28  
29 1 1;
30 __END__
« end_year.pm ↑ Summary split_date.pm »