Condition Coverage

blib/lib/DateTime/Duration.pm
Criterion Covered Total %
condition 12 15 80.0


and 3 conditions

line !l l&&!r l&&r condition
267 8 0 2 @_ == 1 and &blessed($_[0])
8 0 2 @_ == 1 and &blessed($_[0]) and $_[0]->isa("DateTime::Duration")

or 3 conditions

line l !l&&r !l&&!r condition
104 1 1 46 $self->{'nanoseconds'} == &DateTime::INFINITY() or $self->{'nanoseconds'} == &DateTime::NEG_INFINITY()
2 1 45 $self->{'nanoseconds'} == &DateTime::INFINITY() or $self->{'nanoseconds'} == &DateTime::NEG_INFINITY() or $self->{'nanoseconds'} eq &DateTime::NAN()
301 4 1 0 $dt ||= "DateTime"->now