Branch Coverage

blib/lib/Mojolicious/Plugin/ClosedRedirect.pm
Criterion Covered Total %
branch 22 28 78.5


line true false branch
21 0 7 if (my $config_param = $app->config('ClosedRedirect'))
27 2 5 if ($param->{'secrets'} and ref $param->{'secrets'} eq 'ARRAY') { }
79 1 0 if ($path)
82 2 0 if ($redirect_parts->[0] and $_ eq $redirect_parts->[0])
91 0 1 $res->is_redirect ? :
104 0 27 unless $return_url
109 1 26 if (ref $v->output->{$name} eq 'ARRAY') { }
117 10 16 if ($method ne 'signed')
120 6 4 if (_local_path($return_url))
139 18 2 unless ($method eq 'local')
145 15 3 if ($check)
162 11 6 if (secure_compare($url_check, $check))
198 2 0 if (@_ > 0)
209 9 22 if $url =~ m(^(?:/(?:[^\/\\]|$)|~\/.))