Branch Coverage

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


line true false branch
114 1039 272 ref $a eq '' ? :
124 82 472 if (ref $a eq 'Math::BigRat') { }
127 29 443 if ($a < 0) { }
144 153 1186 if (ref $a eq 'Math::BigRat') { }
192 24 39 unless length $digits >= 4
194 6 57 if $sign eq '' and length $digits > 4
226 0 57 unless $m >= 1 and $m <= 12
228 24 33 if ($m == 2) { }
229 12 12 &_year_leap($y) ? :
243 40 32 &_year_leap($y) ? :
279 2 37 unless $m >= 1 and $m <= 12
284 4 33 unless $d >= 1 and $d <= $md
307 2 9 if (@_ == 1) { }
311 2 7 unless $m >= 0 and $m < 100
313 2 5 unless $d >= 0 and $d < 100
339 245 268 &_year_leap($y) ? :
359 106 23 unless $leaps == 0
362 49 80 if ($d >= $yd)
382 3 357 unless $d >= 1 and $d <= $yd
386 334 23 unless $leaps == 0
408 2 7 if (@_ == 1) { }
412 2 5 unless $d >= 0 and $d < 1000
453 67 102 $phase == 3 || $phase == 2 && &_year_leap($y) ? :
468 33 32 $phase <= 3 ? :
470 15 50 if ($w == -1) { }
3 47 elsif ($w >= &year_weeks($py)) { }
492 3 65 unless $w >= 1 and $w <= $yw
494 2 63 unless $d >= 1 and $d <= 7
498 39 24 $phase <= 3 ? :
520 2 9 if (@_ == 1) { }
524 2 7 unless $w >= 0 and $w < 100
526 2 5 unless $d >= 0 and $d < 10