| blib/lib/DateTime/Format/Duration.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 37 | 47 | 78.7 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 245 | 197 | 0 | 0 | $$self{'normalising'} and $$self{'normalising'} =~ /^ISO$/i |
| 624 | 106 | 2 | 22 | $negatives and not $positives |
| 106 | 0 | 2 | $negatives and $positives | |
| 657 | 6 | 2 | 0 | $small < 0 and $make eq 'positive' |
| 661 | 8 | 0 | 2 | $small > 0 and $make eq 'negative' |
| line | l | !l | condition |
|---|---|---|---|
| 226 | 4 | 192 | $years || 0 |
| 174 | 22 | $months || 0 | |
| 19 | 177 | $days || 0 | |
| 179 | 17 | $hours || 0 | |
| 176 | 20 | $minutes || 0 | |
| 176 | 20 | $seconds || 0 | |
| 1 | 195 | $nanoseconds || 0 | |
| 267 | 257 | 226 | $delta{$_} || 0 |
| 360 | 379 | 517 | $delta{$_} ||= 0 |
| 629 | 31 | 123 | $delta{$_} ||= 0 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 31 | 26 | 0 | 31 | $args{'normalise'} ||= delete $args{'normalize'} |
| 218 | 168 | 28 | 0 | $$self{'parser'} || $self->_build_parser |
| 245 | 0 | 128 | 69 | $$self{'normalising'} and $$self{'normalising'} =~ /^ISO$/i or not $self->base |
| 515 | 0 | 28 | 0 | shift() || $self->pattern |