Condition Coverage

blib/lib/Class/Date.pm
Criterion Covered Total %
condition 66 118 55.9


and 3 conditions

line !l l&&!r l&&r condition
149 5 34 95 defined $time and not defined $tz
39 11 84 defined $time and not defined $tz and blessed $proto
45 0 84 defined $time and not defined $tz and blessed $proto and $proto->isa('Class::Date')
156 127 0 2 blessed $time and $time->isa('Class::Date')
127 0 0 blessed $time and $time->isa('Class::Date::Rel')
300 160 3 3 $Class::Date::RANGE_CHECK and $$s[11]
508 9 4 2 blessed $rhs and $rhs->isa('Class::Date')
9 0 4 blessed $rhs and $rhs->isa('Class::Date::Rel')
523 12 0 19 blessed $rhs and $rhs->isa('Class::Date::Rel')
525 0 0 31 blessed $rhs and $rhs->isa('Class::Date::Rel')
533 0 31 0 $Class::Date::DST_ADJUST and my $dstdiff = $$retval[8] - $$s[8]
550 18 0 2 $Class::Date::MONTH_BORDER_ADJUST and $retval
18 0 2 $Class::Date::MONTH_BORDER_ADJUST and $retval and $expected_month != $$retval[1]
568 85 0 7 blessed $rhs and $rhs->isa('Class::Date')

or 2 conditions

line l !l condition
179 121 2 $y || 2000
119 4 $m || 1
117 6 $d || 1
67 56 $hh || 0
74 49 $mm || 0
72 51 $ss || 0
252 0 0 $lt ||= [gmtime]
253 0 0 $lt ||= [gmtime]
254 0 0 $lt ||= [gmtime]
255 0 0 $lt ||= [gmtime]
256 0 0 $lt ||= [gmtime]
257 0 0 $lt ||= [gmtime]
261 0 0 $lt ||= [localtime]
262 0 0 $lt ||= [localtime]
263 0 0 $lt ||= [localtime]
264 0 0 $lt ||= [localtime]
265 0 0 $lt ||= [localtime]
266 0 0 $lt ||= [localtime]
274 1486 506 $_ || 0
498 189 0 $format ||= '%a, %d %b %Y %H:%M:%S %Z'

or 3 conditions

line l !l&&r !l&&!r condition
62 560 267 279 not defined $tz or $tz eq $Class::Date::NOTZ_TIMEZONE
113 8 0 0 $_[0] || time
115 20 0 0 $_[0] || time
145 91 43 0 ref $proto || $proto
174 36 2 0 ref $s || $s
184 2 121 0 ref $s || $s
195 12 0 17 $$val{'year'} || ($$val{'_year'} ? $$val{'_year'} + 1900 : 0)
14 0 15 $$val{'mon'} || $$val{'month'} || ($$val{'_mon'} ? $$val{'_mon'} + 1 : 0)
8 0 21 $$val{'day'} || $$val{'mday'} || $$val{'day_of_month'}
217 0 1 0 ref $s || $s
228 18 4 0 ref $s || $s
384 4 2 0 ref $proto || $proto