Condition Coverage

blib/lib/DateTime/Fiction/JRRTolkien/Shire/Duration.pm
Criterion Covered Total %
condition 13 26 50.0


and 3 conditions

line !l l&&!r l&&r condition
242 28 6 0 $self->{'duration'}->is_zero && 0 == $self->{'weeks'} && $self->{'years'} == 0
306 0 2 4 &Scalar::Util::blessed($obj) && $obj->isa($class)
311 2 0 0 1 == @arg and &Scalar::Util::blessed($arg[0])

or 2 conditions

line l !l condition
48 52 120 $arg{$_} ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
52 2 6 35 $arg{'end_of_month'} || $arg{'holiday'}
67 2 41 0 ref $class || $class
127 0 0 0 $base ||= 'DateTime::Fiction::JRRTolkien::Shire'->now
224 0 0 0 $self->{'weeks'} or $self->{'years'}
235 1 0 0 $self->{'weeks'} or $self->{'years'}