Branch Coverage

blib/lib/Plack/Middleware/ReverseProxyPath.pm
Criterion Covered Total %
branch 12 12 100.0


line true false branch
13 36 8 if ($env->{'HTTP_X_FORWARDED_SCRIPT_NAME'} or $env->{'HTTP_X_TRAVERSAL_PATH'})
22 20 16 if (length $script_name >= length $x_traversal_path) { }
23 3 17 unless $script_name =~ s/^\Q$x_traversal_path\E/$x_script_name/
30 1 15 unless $x_traversal_path =~ s/^\Q$script_name\E//
37 3 12 unless $env->{'PATH_INFO'} =~ s/^\Q$x_traversal_path\E//
49 6 23 if ($script_name eq '/')