DateTime/Duration.pm

filter: Statementstmt 85.1% 23 / 27 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 87.5% 7 / 8 Podpod 100% 1 / 1 totaltotal 75.6% 31 / 41 CC 2 SCAR 7.5
CC
2
Cov
77%
new
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.1
« DateTime.pm ↑ Summary
1 package Banal::DateTime::Duration;
2  
3 1 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶no warnings qw(uninitialized);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 our $VERSION = '0.01';
10  
11 1 ▶use DateTime;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use DateTime::Duration;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 1 our @ISA = qw(DateTime::Duration);
15  
16 #********************************************
17 # CONSTRUCTORS
18 #********************************************
19 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod documented
20 0 my $proto = shift;
21 0 ▶ my $class = ref($proto) || $proto;
Condition0%0/3
ref $proto || $proto
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $proto || $proto
ref $proto $proto
Truth table0%0/3
A || B
A= ref $protoB= $proto
ABresult
1X1
011
000
22
23 0 my $self = DateTime::Duration->new(@_);
24 0 return bless $self, $class;
25 }
26  
27  
28  
29 1 1;
30  
31  
32  
33 __END__
« DateTime.pm ↑ Summary