Condition Coverage

blib/lib/DateTime/Precise.pm
Criterion Covered Total %
condition 42 99 42.4


and 3 conditions

line !l l&&!r l&&r condition
247 1006 65 21 $month == 2 && IsLeapYear($year)
264 0 0 0 $$self[6] == 0 and $$self[5] == 0
0 0 0 $$self[6] == 0 and $$self[5] == 0 and $$self[4] == 0
0 0 0 $$self[6] == 0 and $$self[5] == 0 and $$self[4] == 0 and $$self[3] == 0
289 0 0 3 $_[1] >= 1 and $_[1] <= 12
0 0 3 $_[1] >= 1 and $_[1] <= 12 and $_[2] >= 1
0 0 3 $_[1] >= 1 and $_[1] <= 12 and $_[2] >= 1 and $_[2] <= DaysInMonth($_[1], $_[0])
0 0 3 $_[1] >= 1 and $_[1] <= 12 and $_[2] >= 1 and $_[2] <= DaysInMonth($_[1], $_[0]) and $_[3] >= 0
0 0 3 $_[1] >= 1 and $_[1] <= 12 and $_[2] >= 1 and $_[2] <= DaysInMonth($_[1], $_[0]) and $_[3] >= 0 and $_[3] <= 24
0 0 3 $_[1] >= 1 and $_[1] <= 12 and $_[2] >= 1 and $_[2] <= DaysInMonth($_[1], $_[0]) and $_[3] >= 0 and $_[3] <= 24 and $_[4] >= 0
0 0 3 $_[1] >= 1 and $_[1] <= 12 and $_[2] >= 1 and $_[2] <= DaysInMonth($_[1], $_[0]) and $_[3] >= 0 and $_[3] <= 24 and $_[4] >= 0 and $_[4] <= 59
0 0 3 $_[1] >= 1 and $_[1] <= 12 and $_[2] >= 1 and $_[2] <= DaysInMonth($_[1], $_[0]) and $_[3] >= 0 and $_[3] <= 24 and $_[4] >= 0 and $_[4] <= 59 and $_[5] >= 0
0 0 3 $_[1] >= 1 and $_[1] <= 12 and $_[2] >= 1 and $_[2] <= DaysInMonth($_[1], $_[0]) and $_[3] >= 0 and $_[3] <= 24 and $_[4] >= 0 and $_[4] <= 59 and $_[5] >= 0 and $_[5] <= 59
0 0 3 $_[1] >= 1 and $_[1] <= 12 and $_[2] >= 1 and $_[2] <= DaysInMonth($_[1], $_[0]) and $_[3] >= 0 and $_[3] <= 24 and $_[4] >= 0 and $_[4] <= 59 and $_[5] >= 0 and $_[5] <= 59 and $_[6] >= 0
442 0 135 609 $i <= 6 and $in =~ /(\d+(\.\d*)?)/g
447 67 68 0 $i != 3 and $i != 6
1590 0 0 6 $tags{'s'} >= 0 and $tags{'s'} < 60
1591 0 0 6 $tags{'m'} >= 0 and $tags{'m'} < 60
1593 5 1 0 exists $tags{'p'} and $tags{'p'} =~ /p/i
1598 0 0 6 $tags{'h'} >= 0 and $tags{'h'} <= 24
1602 0 0 6 $tags{'M'} >= 1 and $tags{'M'} <= 12
1613 0 0 5 $tags{'Y'} >= 100 and $tags{'Y'} < 10000
1616 0 0 6 $tags{'D'} >= 1 and $tags{'D'} <= DaysInMonth($tags{'M'}, $tags{'Y'})
1620 0 0 6 defined $tags{'D'} and defined $tags{'M'}
0 0 6 defined $tags{'D'} and defined $tags{'M'} and defined $tags{'Y'}
1834 0 0 4 exists $_func_name{$func} and exists $_unit_name{$unit}

or 3 conditions

line l !l&&r !l&&!r condition
235 23 2 0 $year % 100 != 0 or $year % 400 == 0
306 31 1 161 $$self[6] < 0 or $$self[6] >= 1
32 0 161 $$self[6] < 0 or $$self[6] >= 1 or int $$self[5] != $$self[5]
621 2 142 0 ref $proto || $proto
1495 1 2 39 $1 eq '*' or $1 eq '~'
1731 0 3 0 $unit == 0 or $unit == 1
1826 4 0 0 ref $self || cluck("DateTime::Precise::AUTOLOAD $self is not an object ($DateTime::Precise::AUTOLOAD)")