line |
true |
false |
branch |
33
|
4 |
53 |
if $args{'base'} |
43
|
0 |
298 |
if $_[1] |
|
0 |
298 |
unless $_[0]{'pattern'} |
52
|
0 |
363 |
if $_[1] |
|
128 |
235 |
unless $_[0]{'base'} |
56
|
0 |
3 |
unless ref $newbase eq 'DateTime' |
61
|
0 |
239 |
if $_[1] |
|
197 |
42 |
$_[0]{'normalise'} ? : |
66
|
0 |
0 |
$new ? : |
118
|
31 |
0 |
if (scalar @_ == 1) { } |
120
|
31 |
0 |
if $self->pattern |
127
|
0 |
0 |
ref $args{'pattern'} ? : |
130
|
0 |
31 |
unless @formats |
132
|
30 |
1 |
$self->normalising ? : |
158
|
31 |
177 |
ref $args{'pattern'} ? : |
160
|
167 |
41 |
$self->normalising ? : |
174
|
0 |
610 |
$1 ? : |
|
610 |
0 |
$formats{$2} ? : |
186
|
208 |
0 |
unless wantarray |
221
|
0 |
196 |
if $@ |
248
|
128 |
69 |
if $self->{'normalising'} and $self->{'normalising'} =~ /^ISO$/i or not $self->base |
252
|
6 |
63 |
ref($_[0]) =~ /^DateTime::Duration/ ? : |
256
|
0 |
69 |
if (delete $delta{'negative'}) |
260
|
0 |
69 |
if ($self->{'diagnostic'}) |
267
|
0 |
483 |
if $self->{'diagnostic'} |
273
|
14 |
55 |
if ($start > $end) |
280
|
0 |
69 |
if $self->{'diagnostic'} |
283
|
0 |
69 |
if $self->{'diagnostic'} |
286
|
0 |
69 |
if $self->{'diagnostic'} |
289
|
0 |
69 |
if $self->{'diagnostic'} |
292
|
0 |
69 |
if $self->{'diagnostic'} |
295
|
0 |
69 |
if $self->{'diagnostic'} |
298
|
0 |
69 |
if $self->{'diagnostic'} |
300
|
0 |
69 |
if ($new_delta{'nanoseconds'} < 0) |
303
|
0 |
0 |
if $self->{'diagnostic'} |
306
|
4 |
65 |
if ($new_delta{'seconds'} < 0) |
309
|
0 |
4 |
if $self->{'diagnostic'} |
312
|
10 |
59 |
if ($new_delta{'minutes'} < 0) |
315
|
0 |
10 |
if $self->{'diagnostic'} |
318
|
11 |
58 |
if ($new_delta{'hours'} < 0) |
321
|
0 |
11 |
if $self->{'diagnostic'} |
324
|
16 |
53 |
if ($new_delta{'days'} < 0) |
329
|
0 |
16 |
if $self->{'diagnostic'} |
332
|
14 |
55 |
if ($new_delta{'months'} < 0) |
335
|
0 |
14 |
if $self->{'diagnostic'} |
340
|
0 |
69 |
if ($self->{'diagnostic'}) |
349
|
24 |
104 |
ref($_[0]) =~ /^DateTime::Duration/ ? : |
351
|
1 |
127 |
if (delete $delta{'negative'}) |
358
|
0 |
128 |
if ($self->{'diagnostic'}) |
380
|
40 |
88 |
if $self->{'normalise'} =~ /^iso$/i |
383
|
0 |
128 |
if ($self->{'diagnostic'}) |
390
|
0 |
128 |
if ($self->{'diagnostic'}) |
413
|
7 |
0 |
ref $_[0] ? : |
414
|
0 |
7 |
if (delete $delta{'negative'}) |
416
|
0 |
7 |
unless ($self->base) |
436
|
0 |
48 |
if ($level > 0) { } |
445
|
0 |
48 |
$level ? : |
484
|
24 |
0 |
unless $args{'as_deltas'} |
500
|
25 |
2 |
unless $precision |
503
|
0 |
2 |
if $frac |
539
|
0 |
1 |
$1 ? : |
543
|
0 |
7 |
$1 ? : |
547
|
0 |
6 |
$1 ? : |
551
|
0 |
1 |
$1 ? : |
557
|
0 |
9 |
$1 ? : |
561
|
0 |
11 |
$1 ? : |
565
|
0 |
8 |
$1 ? : |
569
|
0 |
8 |
$1 ? : |
573
|
0 |
1 |
$1 ? : |
578
|
0 |
0 |
$tempdur->can($1) ? : |
579
|
0 |
0 |
$tempdur->can($2) ? : |
582
|
0 |
2 |
$1 ? : |
592
|
0 |
28 |
if $field_list =~ /(\%\w)/g |
603
|
41 |
639 |
$small < 0 ? : |
613
|
35 |
875 |
if ($delta{$_} < 0) { } |
|
139 |
736 |
elsif ($delta{$_} > 0) { } |
619
|
22 |
108 |
if ($negatives and not $positives) { } |
|
2 |
212 |
elsif ($negatives and $positives) { } |
621
|
31 |
123 |
if ($delta{$_} < 0) |
631
|
2 |
6 |
if ($delta{$_} < 0) { } |
|
0 |
6 |
elsif ($delta{$_} > 0) { } |
639
|
2 |
0 |
if ($make) |