Branch Coverage

blib/lib/DateTime/Format/Natural/Rewrite.pm
Criterion Covered Total %
branch 16 16 100.0


line true false branch
36 2505 11906 if ($$date_string =~ /$rewrite->{'at'}{'match'}/g)
43 2499 2952 if ($last_token =~ /$regex/)
44 29 2470 if $last_token =~ /^\d{1,2}$/
60 10276 1636 if ($$date_string =~ /\s+/) { }
63 133588 10276 if ($alias =~ /^\w+$/) { }
90 1121 137 unless $self->_check_formatted("ymd", \%count) or $self->_check_formatted("md", \%count)
93 12 125 if ($date_strings->[0] =~ /^ \Q$formatted\E \s+ \d{1,2} $/x)
96 12 125 if (@$date_strings == 2 and $date_strings->[1] =~ /^ \d{1,2} $/x)