blib/lib/Date/Time.pm

filter: Statementstmt 73.3% 11 / 15 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 1 totaltotal 54.1% 13 / 24 CC 2 SCAR 12.5
CC
2
Cov
61%
new
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.5
↑ Summary
1 package Date::Time::UnixTime;
2  
3 # Some methods dealing with Unix timestamps are to be implemented here.
4  
5 1 1;
6  
7 package Date::Time;
8  
9 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 require AutoLoader;
13  
14 1 @ISA = qw(AutoLoader);
15 1 $VERSION = '0.01';
16  
17 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
18 # Class identification:
19 0 ▶ my $object_or_class = shift; my $class = ref($object_or_class) || $object_or_class;
Condition0%0/3
ref $object_or_class || $object_or_class
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $object_or_class || $object_or_class
ref $object_or_class $object_or_class
Truth table0%0/3
A || B
A= ref $object_or_classB= $object_or_class
ABresult
1X1
011
000
20 0 my $self={}; bless $self, $class;
21  
22
23 }
24  
25  
26 1 1;
27 __END__
↑ Summary