| blib/lib/Date/Parse/Modern.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 47 | 68 | 69.1 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 211 | 25 | 12 | 18 | not $month and $str =~ /$rule_2/ |
| 236 | 43 | 5 | 7 | not $month and $str =~ /(.*)($MONTH_REGEXP)(.*)/ |
| 244 | 0 | 0 | 3 | $before and $after |
| 270 | 48 | 5 | 2 | not $day and $str =~ /\b(\d{1,2})(st|nd|rd|th)/ |
| 300 | 33 | 3 | 1 | $ampm and $hour == 24 || $hour == 12 |
| 363 | 52 | 0 | 0 | $err and $err =~ /Undefined subroutine/ |
| 391 | 0 | 30 | 22 | defined $ret and $str =~ /$tz_rule/ |
| 432 | 0 | 21 | 31 | defined $ret and not defined $tz_offset_seconds |
| 475 | 0 | 0 | 0 | $USE_TZ_CACHE and $x->{$cache_key} |
| line | l | !l | condition |
|---|---|---|---|
| 227 | 6 | 8 | $5 || 0 |
| 241 | 7 | 0 | $$MONTH_MAP{lc $2} || 0 |
| 252 | 3 | 0 | $1 || 0 |
| 288 | 26 | 11 | $4 || 0 |
| 292 | 4 | 33 | $6 || '' |
| 397 | 3 | 0 | $6 || $7 || '' |
| 409 | 3 | 12 | $TZ_OFFSET->{$tz_str} || 0 |
| 446 | 0 | 0 | $year || -1 |
| 0 | 0 | $month || -1 | |
| 0 | 0 | $day || -1 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 178 | 21 | 0 | 4 | $2 or $3 |
| 185 | 4 | 0 | 21 | $5 or $6 |
| 300 | 2 | 1 | 1 | $hour == 24 || $hour == 12 |
| 306 | 31 | 6 | 18 | $hour || $min || $sec |
| 307 | 50 | 0 | 5 | $year || $month || $day |
| 309 | 37 | 14 | 4 | $has_time or $has_date |
| 395 | 13 | 3 | 6 | $6 or $7 |