Branch Coverage

blib/lib/Mojolicious/Plugin/ClosedRedirect.pm
Criterion Covered Total %
branch 25 30 83.3


line true false branch
21 0 6 if (my $config_param = $app->config('ClosedRedirect'))
26 2 4 if ($param->{'secrets'} and ref $param->{'secrets'} eq 'ARRAY')
70 1 0 if ($path)
73 2 0 if ($redirect_parts->[0] and $_ eq $redirect_parts->[0])
82 0 1 $res->is_redirect ? :
96 0 27 unless $return_url
101 1 26 if (ref $v->output->{$name} eq 'ARRAY') { }
109 10 16 if ($method ne 'signed')
112 6 4 if (_local_path($return_url))
131 18 2 unless ($method eq 'local')
137 15 3 if ($check)
145 3 12 $plugin->secrets->[0] ? :
157 11 6 if (secure_compare($url_check, $check))
193 2 33 if (@_ > 0)
204 9 22 if $url =~ m(^(?:/(?:[^\/\\]|$)|~\/.))