| 1 | 2 | ▶ | use v5.10.1; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 2 | 2 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 3 | 2 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | |||||||||||||
| 5 | package Neo4j::Types::Generic::Duration; | ||||||||||||
| 6 | # ABSTRACT: Generic representation of a Neo4j temporal duration value | ||||||||||||
| 7 | 2 | $Neo4j::Types::Generic::Duration::VERSION = '2.00'; | |||||||||||
| 8 | |||||||||||||
| 9 | 2 | ▶ | use parent 'Neo4j::Types::Duration'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 10 | |||||||||||||
| 11 | |||||||||||||
| 12 | 2 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||||
| 13 | # uncoverable pod - see Generic.pod | ||||||||||||
| 14 | 2 | my ($class, $params) = @_; | |||||||||||
| 15 | |||||||||||||
| 16 | 2 | ▶ | $params->{$_} ||= 0 for qw( months days seconds nanoseconds ); | ||||||||||
|
Condition100%2/2
$params->{$_} ||= 0
MC/DC100%1/1
$params->{$_} ||= 0
$params->{$_}
Truth table100%2/2
A
A= $params->{$_}
| |||||||||||||
| 17 | 2 | return bless $params, __PACKAGE__; | |||||||||||
| 18 | } | ||||||||||||
| 19 | |||||||||||||
| 20 | |||||||||||||
| 21 | 2 | ▶ | sub months { shift->{months} } | ||||||||||
|
Subroutine
months: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 22 | 2 | ▶ | sub days { shift->{days} } | ||||||||||
|
Subroutine
days: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 23 | 2 | ▶ | sub seconds { shift->{seconds} } | ||||||||||
|
Subroutine
seconds: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 24 | 2 | ▶ | sub nanoseconds { shift->{nanoseconds} } | ||||||||||
|
Subroutine
nanoseconds: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 25 | |||||||||||||
| 26 | |||||||||||||
| 27 | 2 | 1; | |||||||||||