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