Branch Coverage

blib/lib/Date/Gregorian.pm
Criterion Covered Total %
branch 71 78 91.0


line true false branch
99 1 2334 if (15 <= $m) { }
1677 657 elsif (3 <= $m) { }
656 1 elsif (-9 <= $m) { }
105 2293 42 if (not $fixed and $s <= $d or $fixed and $s)
106 2290 3 0 <= $y ? :
118 6121 35 if ($s <= $n) { }
131 1320 4836 if 12 < $m
142 29 5 if ($e <= $y) { }
143 28 1 0 <= $y ? :
149 6 2 if 28 <= $d and 28 < $d || 11 <= $g
156 22 12 if 31 < $d
157 2 32 ($s <= $n xor $e <= $y) ? :
167 10138 8 if ($s <= $n)
168 10137 1 0 <= $y ? :
170 4 10134 if ($n < $s)
185 3 4599 if ($n < $base) { }
193 31 4568 if ($limit <= $n)
217 792 33 if (ref $class) { }
231 6 7 if defined $e
258 203 2 if (defined $d and 1 <= $d and $d <= 31 and defined $m and 1 <= $m and $m <= 12 and defined $y and -1469871 <= $y and $y <= 5879489)
264 192 0 if ($dd == $d and $mm == $m and $yy == $y)
308 5 2 if (defined $d and 0 <= $d and $d <= 6 and defined $w and 1 <= $w and $w <= 53 and defined $y and -1469871 <= $y and $y <= 5879489)
316 3 2 if ($$ydyw[1] == $y and $$ydyw[2] == $w)
327 852 4667 if 1 == $m
414 0 428 if 24855 < abs $dd
416 0 428 if ($delta or $dd)
417 0 0 if ($dd < 0 and 0 <= $delta)
422 0 0 unless $step
435 11 5 if (defined $rel and '>=' ne $rel)
436 1 10 if not $delta and '>' eq $rel
437 6 5 if '<' eq $rel or $delta and '<=' eq $rel
439 12 4 if ($delta)
459 18 505 if $dayno > $final
472 6 13 if $dayno < $final
483 3 2 unless ($datetime->time_zone->is_floating)
495 4 4 unless $$self[5]
517 1 1 $self->is_gregorian ? :
523 5 2 if ($string =~ /^(-?\d+)-(\d+)-(\d+)([JG]?)\z/)
524 2 3 $4 ? :