Condition Coverage

blib/lib/Time/Period.pm
Criterion Covered Total %
condition 170 192 88.5


and 3 conditions

line !l l&&!r l&&r condition
352 1 126 0 $v1 =~ /\w/ and $v2 =~ /\w/
438 1008 1 132 $wd[$i] == 0 and $i != 1
458 1 5 1 $v1 > 99 and $v1 < 1970
459 1 4 1 $v2 > 99 and $v2 < 1970
468 1 1 3 $v1 <= $yr and $yr <= $v2
470 1 5 1 $range > 99 and $range < 1970
523 2 0 3 $v1 <= $mo and $mo <= $v2
560 1 1 1 $v1 <= $wk and $wk <= $v2
591 0 2 1 $v1 <= $yd and $yd <= $v2
619 0 2 1 $v1 <= $md and $md <= $v2
671 1 1 2 $v1 <= $wd and $wd <= $v2
738 0 2 10 $v1 <= $hr and $hr <= $v2
780 0 2 1 $v1 <= $min and $min <= $v2
806 0 2 1 $v1 <= $sec and $sec <= $v2

or 3 conditions

line l !l&&r !l&&!r condition
255 1 1 209 $time =~ /\D/ or $time eq ''
294 2 1 203 $lb != $rb or $lb == 0
456 1 1 7 $v1 =~ /\D/ or $v2 =~ /\D/
457 0 0 7 $v1 < 0 or $v2 < 0
470 1 0 7 $range =~ /\D/ or $range < 0
1 0 7 $range =~ /\D/ or $range < 0 or $range > 99 and $range < 1970
508 1 1 4 $v1 < 0 or $v1 > 11
518 1 1 1 $v2 < 0 or $v2 > 11
521 0 5 1 $v1 <= $mo or $v2 >= $mo
534 1 1 1 $range < 0 or $range > 11
552 1 1 10 $v1 =~ /\D/ or $v2 =~ /\D/
555 1 1 8 $v1 < 0 or $v1 > 5
556 1 1 6 $v2 < 0 or $v2 > 5
558 1 1 1 $v1 <= $wk or $v2 >= $wk
565 1 1 5 $range < 0 or $range > 5
583 1 1 10 $v1 =~ /\D/ or $v2 =~ /\D/
586 1 1 8 $v1 < 0 or $v1 > 365
587 1 1 6 $v2 < 0 or $v2 > 365
589 1 1 1 $v1 <= $yd or $v2 >= $yd
595 2 0 5 $range =~ /\D/ or $range < 0
2 1 4 $range =~ /\D/ or $range < 0 or $range > 365
613 1 1 10 $v1 =~ /\D/ or $v2 =~ /\D/
614 1 1 8 $v1 < 1 or $v1 > 31
615 1 1 6 $v2 < 1 or $v2 > 31
617 1 1 1 $v1 <= $md or $v2 >= $md
622 1 1 4 $range =~ /\D/ or $range < 1
2 1 3 $range =~ /\D/ or $range < 1 or $range > 31
656 1 1 5 $v1 < 0 or $v1 > 6
666 1 1 1 $v2 < 0 or $v2 > 6
669 5 1 1 $v1 <= $wd or $v2 >= $wd
682 1 1 1 $range < 0 or $range > 6
732 1 0 19 $v1 =~ /\D/ or $v1 < 0
1 1 18 $v1 =~ /\D/ or $v1 < 0 or $v1 > 23
733 1 0 17 $v2 =~ /\D/ or $v2 < 0
1 1 16 $v2 =~ /\D/ or $v2 < 0 or $v2 > 23
736 1 2 1 $v1 <= $hr or $v2 >= $hr
757 1 0 9 $range =~ /\D/ or $range < 0
1 1 8 $range =~ /\D/ or $range < 0 or $range > 23
774 1 1 8 $v1 =~ /\D/ or $v2 =~ /\D/
775 0 1 7 $v1 < 0 or $v1 > 59
776 0 1 6 $v2 < 0 or $v2 > 59
778 1 1 1 $v1 <= $min or $v2 >= $min
783 1 0 4 $range =~ /\D/ or $range < 0
1 1 3 $range =~ /\D/ or $range < 0 or $range > 59
800 1 1 8 $v1 =~ /\D/ or $v2 =~ /\D/
801 0 1 7 $v1 < 0 or $v1 > 59
802 0 1 6 $v2 < 0 or $v2 > 59
804 1 1 1 $v1 <= $sec or $v2 >= $sec
809 1 0 4 $range =~ /\D/ or $range < 0
1 1 3 $range =~ /\D/ or $range < 0 or $range > 59