Branch Coverage

blib/lib/Mojolicious/Plugin/AutoRoutePm.pm
Criterion Covered Total %
branch 8 16 50.0


line true false branch
45 1 1 if (-d $template_dir)
54 0 0 if $file =~ /$_/u
56 2 0 unless $excluded
73 2 0 if ($ctl->isa("Mojolicious::Controller"))
86 1 1 if ($template =~ s/$dindex$//u)
109 2 0 if substr($url, 0, length $r->to_string) eq $r->to_string
113 2 0 if scalar @ret == 1
118 0 0 if length $r->name > length $ret->name