Branch Coverage

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


line true false branch
36 2529 12138 if ($$date_string =~ /$rewrite->{'at'}{'match'}/g)
43 2523 2982 if ($last_token =~ /$regex/)
44 29 2494 if $last_token =~ /^\d{1,2}$/
60 10360 1784 if ($$date_string =~ /\s+/) { }
63 134680 10360 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)