Branch Coverage

lib/Mojolicious/Plugin/Route.pm
Criterion Covered Total %
branch 32 42 76.1


line true false branch
23 0 2 unless -d $path_routes
28 0 2 unless -d $path_routes
45 4 9 if (-d $file)
51 9 0 if $file =~ m[/lib/([\w/]+)\.pm$]u
54 3 2 if ($more)
72 9 0 if ($class and $class->isa("MojoX::Route"))
75 2 7 if $class->can("any")
76 5 4 if $class->can("under")
77 5 4 if $class->can("route")
93 1 1 if $self->_valid_reference($ref_name)
96 0 2 $inverse ? :
98 2 0 if $any
107 2 3 if $self->_valid_reference($ref_name)
110 2 3 $inverse ? :
112 5 0 if $under
121 3 2 if $self->_valid_reference($name)
122 3 2 if $self->_valid_reference($ref_name)
125 1 4 $inverse ? :
143 9 0 unless $e
155 0 2 if $conf->{'moniker'} and -d $path . $conf->{'moniker'}
164 0 2 unless -d $path . $moniker_path