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
68 2 0 if ($ctl->isa("Mojolicious::Controller"))
81 1 1 if ($template =~ s/$dindex$//u)
101 2 0 if substr($url, 0, length $r->to_string) eq $r->to_string
105 2 0 if scalar @ret == 1
110 0 0 if length $r->name > length $ret->name