Branch Coverage

blib/lib/Catalyst/Dispatcher.pm
Criterion Covered Total %
branch 56 82 68.3


line true false branch
102 12 0 if $command
116 807 10 if ($c->action) { }
122 10 0 $path ? :
125 0 10 if $c->debug
139 0 6199 unless ($command)
140 0 0 if $c->debug
146 8 6191 if (ref $extra_params[-1] eq 'ARRAY') { }
159 120 6079 unless ($action)
160 20 100 @extra_params ? :
165 1 6198 unless ($action)
170 0 1 if $c->debug
185 5365 834 unless ($path =~ m[^/])
202 6079 13 if (my $action = $c->get_action($tail, $path)) { }
208 3 10 unless $path
229 119 0 if (my $code = $class->can($method)) { }
246 0 0 if $c->debug
270 0 1317 if $path eq '/'
276 805 3946 if $type->match($c, $path)
285 0 817 unless $c->req->captures
287 0 817 if $c->debug and $c->req->match
290 0 817 if $c->debug and @args
302 0 6913 unless $name
318 1 8 unless $path =~ m[/]
328 0 2485 unless $action
346 0 2485 if $namespace eq '/'
350 2449 36 if (length $namespace)
377 2 17 $uri eq '' ? :
19 96 if defined $uri
398 17034 15174 if $key eq 'Private'
400 275 14899 unless ($$registered{$class})
402 47 228 unless $@
429 1111 23937 unless $namespace
439 23937 55062 unless $part
444 2591 52471 unless ($child)
470 2632 123 if $comp->can('register_actions')
475 50 0 unless $c->debug
487 0 0 unless $prefix =~ m[/$]
493 0 0 if $action =~ /^_.*/ and not $c->config->{'show_internal_actions'}
503 0 0 if $has_private
517 0 203 $type =~ /^\+(.*)$/ ? :
520 0 203 if $@