Branch Coverage

blib/lib/Catalyst/Plugin/CachedUriForAction.pm
Criterion Covered Total %
branch 36 40 90.0


line true false branch
24 126 48 unless defined $dispatcher->uri_for_action($action, [("dummy") x $n_caps])
37 0 57 unless my $cache = $dispatcher && $dispatcher->{'Catalyst::Plugin::CachedUriForAction::action_uri_info'}
41 30 27 @_ && 'ARRAY' eq ref $_[0] ? :
42 2 55 @_ && 'SCALAR' eq ref $_[-1] ? :
43 20 37 @_ && 'HASH' eq ref $_[-1] ? :
47 1 2 if ref $action and do {
49 2 55 unless my $info = $cache->{$action}
57 29 26 if ($n_args) { }
58 2 27 if @$captures < $n_caps
61 2 24 if @$captures != $n_caps
70 32 19 if (defined $n_args) { }
71 6 26 if @$captures + @_ != @$extra_parts
94 35 10 ref $c ? :
98 20 25 if (defined $params)
104 20 1 if ('ARRAY' ne ref $v) { }
1 0 elsif (@$v) { }
106 19 1 if defined $v
111 2 0 if defined $_
115 20 0 if ("" ne $query)
121 2 43 if (defined $fragment)