Condition Coverage

blib/lib/DateTime/Format/Duration.pm
Criterion Covered Total %
condition 37 47 78.7


and 3 conditions

line !l l&&!r l&&r condition
248 197 0 0 $self->{'normalising'} and $self->{'normalising'} =~ /^ISO$/i
619 106 2 22 $negatives and not $positives
106 0 2 $negatives and $positives
652 6 2 0 $small < 0 and $make eq 'positive'
656 8 0 2 $small > 0 and $make eq 'negative'

or 2 conditions

line l !l condition
227 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
266 257 226 $delta{$_} || 0
355 379 517 $delta{$_} ||= 0
624 31 123 $delta{$_} ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
32 26 0 31 $args{'normalise'} ||= delete $args{'normalize'}
219 168 28 0 $self->{'parser'} || $self->_build_parser
248 0 128 69 $self->{'normalising'} and $self->{'normalising'} =~ /^ISO$/i or not $self->base
510 0 28 0 shift() || $self->pattern