Condition Coverage

blib/lib/DateTimeX/Lite.pm
Criterion Covered Total %
condition 84 104 80.7


and 3 conditions

line !l l&&!r l&&r condition
137 0 166495 10 defined $$range[0] and $v < $$range[0]
27750 138735 10 defined $$range[1] and $v > $$range[1]
230 279 42 24857 $offset >= 0 and $$self{'local_rd_secs'} >= $offset
42 241 38 $offset < 0 and $$self{'local_rd_secs'} >= 86400 + $offset
234 59 24746 52 $second < 60 and $offset > 0
24755 50 0 $second == 60 and $$self{'local_rd_secs'} == $offset && $offset > 0 || $offset == 0 && $$self{'local_rd_secs'} > 86399
263 0 2 5 $second == 60 and $$self{'local_rd_secs'} == 86400 + $offset
338 3 5586 733 $object->can('time_zone') and not $object->time_zone->is_floating
5589 727 6 $object->can('time_zone') and not $object->time_zone->is_floating and $rd_secs > 86399
6313 0 6 $object->can('time_zone') and not $object->time_zone->is_floating and $rd_secs > 86399 and $rd_secs <= DateTimeX::Lite::LeapSecond::day_length($rd_days)
479 20 2 5 $$self{'local_c'}{'week_number'} == 53 and $self->_weeks_in_year($self->year) == 52
787 960 7 0 not ref $dt2 and $dt2 == 9**9**9 || $dt2 == -9**9**9
792 0 0 961 blessed $dt1 and $dt1->can('utc_rd_values')
1 1 959 blessed $dt2 and $dt2->can('utc_rd_values')
0 961 0 blessed $dt1 and $dt1->can('utc_rd_values') and (blessed $dt2 and $dt2->can('utc_rd_values'))
802 0 0 958 blessed $dt1 and $dt1->can('time_zone')
1 958 0 not $consistent and (blessed $dt1 and $dt1->can('time_zone'))
0 2 956 blessed $dt2 and $dt2->can('time_zone')
0 958 0 not $consistent and (blessed $dt1 and $dt1->can('time_zone')) and (blessed $dt2 and $dt2->can('time_zone'))
810 99 855 2 $is_floating1 and not $is_floating2
96 855 3 $is_floating2 and not $is_floating1
838 1119 2 1 $p{'day_of_year'} == 366 and not $is_leap_year
844 0 1121 6195 $month <= 12 and $day > DateTimeX::Lite::Util::month_length($p{'year'}, $month)

or 2 conditions

line l !l condition
160 26572 1163 $p{'time_zone'} || 'floating'
332 4 6318 $rd_nanosecs ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
137 10 0 166495 defined $$range[0] and $v < $$range[0] or defined $$range[1] and $v > $$range[1]
158 1 23391 4343 delete $p{'language'} || delete $p{'locale'}
186 1 2 43 $$self{'tz'}->is_floating or $$self{'utc_rd_secs'} - 86400 + 1 < $second - 59
199 24709 12498 186 $time_zone->is_utc or $time_zone->is_floating
234 3 0 47 $$self{'local_rd_secs'} == $offset && $offset > 0 || $offset == 0 && $$self{'local_rd_secs'} > 86399
291 24186 3481 316 $$self{'tz'}->is_utc or $$self{'tz'}->is_floating
370 1 1 72 $p{'month'} > 12 or $p{'month'} < 1
510 2 0 9 $dow == 4 || $dow == 3 && DateTimeX::Lite::Util::is_leap_year($year)
787 4 2 1 $dt2 == 9**9**9 || $dt2 == -9**9**9

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
103 0 5592 6 249 $$self{'tz'}->is_floating xor $was_floating