Branch Coverage

blib/lib/Time/UTC.pm
Criterion Covered Total %
branch 67 76 88.1


line true false branch
399 238 192 if ($instant >= $segments[$try]->start_tai_instant) { }
405 1 80 if ($min == 0 and $instant < $segments[0]->start_tai_instant)
408 2 78 if ($max == $final and $instant >= $segments[$final]->start_tai_instant)
411 0 2 if @segments != $final + 1
427 0 81 unless $day->is_int
435 238 192 if ($day >= $segments[$try]->start_utc_day) { }
441 1 81 if ($min == 0 and $day < $segments[0]->start_utc_day)
444 3 78 if ($max == $final and $day >= $segments[$final]->start_utc_day)
446 1 2 if @segments != $final + 1
489 0 635 unless $day->is_int
490 3 632 if $day < $segments[0]->start_utc_day
492 8 624 if ($day >= $end_day)
494 6 2 if ($day >= $end_day)
499 234 392 defined $val ? :
522 156 156 if $secs->is_negative or $secs >= $day_len
549 0 0 if ($day == $seg->end_utc_day)
567 0 0 $day == $seg->last_utc_day ? :
569 0 0 if $secs->is_negative or $secs >= $day_len
605 1 6 if $secs->is_negative
607 3 3 if ($secs >= 86340) { }
629 2 15 unless $hr->is_int and not $hr->is_negative and $hr < 24
631 4 9 unless $mi->is_int and not $mi->is_negative and $mi < 60
633 3 6 unless not $sc->is_negative and $hr == 23 && $mi == 59 || $sc < 60
662 4 6 $yr % 400 == 0 ? :
10 2 $yr % 100 == 0 ? :
12 37 $yr % 4 == 0 ? :
664 6 43 $isleap ? :
670 1 17 unless $day->is_int
676 15 2 unless $leaps->is_zero
679 12 5 if ($day >= $$monthstarts[12])
703 1 23 unless $yr->is_int
705 2 20 unless $mo->is_int and $mo >= 1 and $mo <= 12
709 2 17 unless $dy->is_int and $dy >= 1 and $dy <= $$monthstarts[$mo] - $$monthstarts[$mo - 1]
719 15 2 unless $leaps->is_zero
767 1 3 unless $day->is_int
781 1 3 unless $mjdn->is_int
800 1 3 unless $day->is_int
814 1 3 unless $cjdn->is_int