Branch Coverage

blib/lib/Date/ISO8601.pm
Criterion Covered Total %
branch 63 64 98.4


line true false branch
115 1039 272 ref $a eq '' ? :
125 82 472 if (ref $a eq 'Math::BigRat') { }
128 29 443 if ($a < 0) { }
145 153 1186 if (ref $a eq 'Math::BigRat') { }
193 24 39 unless length $digits >= 4
195 6 57 if $sign eq '' and length $digits > 4
227 0 57 unless $m >= 1 and $m <= 12
229 24 33 if ($m == 2) { }
230 12 12 _year_leap $y ? :
244 40 32 _year_leap $y ? :
280 2 37 unless $m >= 1 and $m <= 12
285 4 33 unless $d >= 1 and $d <= $md
308 2 9 if (@_ == 1) { }
312 2 7 unless $m >= 0 and $m < 100
314 2 5 unless $d >= 0 and $d < 100
340 245 268 _year_leap $y ? :
360 106 23 unless $leaps == 0
363 49 80 if ($d >= $yd)
383 3 357 unless $d >= 1 and $d <= $yd
387 334 23 unless $leaps == 0
409 2 7 if (@_ == 1) { }
413 2 5 unless $d >= 0 and $d < 1000
454 67 102 $phase == 3 || $phase == 2 && _year_leap $y ? :
469 33 32 $phase <= 3 ? :
471 15 50 if ($w == -1) { }
3 47 elsif ($w >= year_weeks $py) { }
493 3 65 unless $w >= 1 and $w <= $yw
495 2 63 unless $d >= 1 and $d <= 7
499 39 24 $phase <= 3 ? :
521 2 9 if (@_ == 1) { }
525 2 7 unless $w >= 0 and $w < 100
527 2 5 unless $d >= 0 and $d < 10