Branch Coverage

blib/lib/Catalyst/Plugin/URI.pm
Criterion Covered Total %
branch 9 26 34.6


line true false branch
35 0 6 if (&Scalar::Util::blessed($action_proto) and $action_proto->isa('Catalyst::Action'))
40 0 6 unless ref \$action_proto eq 'SCALAR'
43 1 5 if ($action_proto =~ m[^/?#]) { }
5 0 elsif ($action_proto =~ /^(.*)\:(.+)$/) { }
0 0 elsif ($action_proto =~ m[/]) { }
0 0 elsif ($action = $c->controller->action_for($action_proto)) { }
44 0 1 unless $action = $c->dispatcher->get_action_by_path($action_proto)
47 0 5 unless my $controller = $c->controller($1 || '')
49 0 5 unless $action = $controller->action_for($2)
52 0 0 $action_proto =~ m[^/] ? :
53 0 0 unless $path
54 0 0 unless $action = $c->dispatcher->get_action_by_path($path)
61 0 6 unless my $uri = $c->uri_for($action, @args)