Branch Coverage

blib/lib/Nile/Dispatcher.pm
Criterion Covered Total %
branch 0 50 0.0


line true false branch
81 0 0 if $app->request->is_ajax
88 0 0 unless $route =~ m[^/]
94 0 0 if ($$match{'action'})
106 0 0 if (ref $route eq 'CODE')
107 0 0 if (defined $$match{'route'}{'attributes'} and $$match{'route'}{'attributes'} =~ /capture/i)
111 0 0 if (defined $$match{'route'}{'attributes'} and $$match{'route'}{'attributes'} =~ /command/i) { }
121 0 0 if ($@)
129 0 0 if (not $route or $route eq '/')
142 0 0 if ($@)
148 0 0 unless ($object->can($action))
150 0 0 if ($module eq $controller and $action eq 'index') { }
152 0 0 if ($object->can($module)) { }
0 0 elsif ($object->can(lc $module)) { }
171 0 0 unless (grep /^(action|capture|command|public)$/i, @$attrs)
177 0 0 if ($request_method ne '*' and not grep(/^$request_method$/i, @$attrs))
186 0 0 if (grep /^(capture)$/i, @$attrs) { }
0 0 elsif (grep /^(command)$/i, @$attrs) { }
200 0 0 if ($@)
222 0 0 unless $route
229 0 0 if (scalar @parts == 3) { }
0 0 elsif (scalar @parts == 2) { }
0 0 elsif (scalar @parts == 1) { }
275 0 0 unless ($route)
279 0 0 if $route = $app->request->param($_)
286 0 0 if ($route)