Branch Coverage

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


line true false branch
45 2 2 if (-d $template_dir)
54 0 0 if $file =~ /$_/u
56 6 0 unless $excluded
76 6 0 if ($ctl->isa("Mojolicious::Controller"))
89 4 2 if ($template =~ s/$dindex$//u)
112 6 0 if substr($url, 0, length $r->to_string) eq $r->to_string
116 6 0 if scalar @ret == 1
121 0 0 if length $r->name > length $ret->name