| line |
true |
false |
branch |
|
28
|
0 |
11 |
if %options |
|
37
|
0 |
11 |
if (my $app_base = $class->app_base) |
|
41
|
0 |
0 |
if $file_app |
|
53
|
0 |
0 |
if ref $main_resp and $main_resp->[0] != 404 |
|
55
|
0 |
0 |
if ref $file_resp and $file_resp->[0] != 404 |
|
57
|
0 |
11 |
if $file_app |
|
65
|
0 |
0 |
if $base and length $base and substr($base, 0, 1) ne "/" |
|
81
|
0 |
2 |
$env->{'psgi.streaming'} ? : |
|
|
2 |
39 |
unless defined $psgix_streaming |
|
83
|
0 |
41 |
if $class->use_global_request_response |
|
92
|
0 |
41 |
if (PXF::Util::is_module_loaded($app_namespace . '::Template')) |
|
97
|
0 |
0 |
unless (eval {
do {
my $template = ($app_namespace . '::Template')->new($response);
$template->set("STASH", $stash, "REQUEST", $request, "RESPONSE", $response);
$response->template($template)
}
}) |
|
104
|
1 |
40 |
if $request->flash |
|
110
|
31 |
10 |
if (my $match = $rt_engine->match($request)) |
|
111
|
0 |
31 |
if defined $match->{'base'} |
|
115
|
11 |
20 |
if (my $filterset = $match->{'prefilters'}) |
|
117
|
0 |
11 |
if $ret and is_valid_response($ret) |
|
122
|
0 |
31 |
unless ($result and ref $result) |
|
128
|
6 |
25 |
if $result->isa("Plack::Request") |
|
129
|
0 |
25 |
unless $result->isa("Plack::Response") |
|
133
|
11 |
14 |
if (my $filterset = $match->{'postfilters'}) |
|
135
|
0 |
11 |
if $ret and is_valid_response($ret) |
|
139
|
3 |
22 |
if ($response->cleanup_callbacks and scalar @{$response->cleanup_callbacks} > 0) |
|
140
|
0 |
3 |
if ($request->env->{'psgix.cleanup'}) { } |
|
147
|
25 |
0 |
if is_valid_response($response) |
|
157
|
0 |
22 |
unless $filters and ref $filters eq "ARRAY" |
|
159
|
12 |
25 |
if ref $filter eq "CODE" |
|
161
|
0 |
37 |
if $response and is_valid_response($response) |
|
168
|
2 |
33 |
unless defined $response and ref $response |
|
169
|
2 |
3 |
if ref $response eq "ARRAY" and @$response == 3 || @$response == 2 |
|
170
|
26 |
5 |
if builtin::blessed($response) and $response->can("finalize") |
|
175
|
11 |
26 |
unless builtin::blessed($resp) |
|
178
|
24 |
2 |
unless $resp->can("stream") and $resp->stream |
|
186
|
1 |
1 |
if $psgix_streaming |
|
197
|
35 |
6 |
if (ref $env_or_req and ref $env_or_req eq 'HASH') { } |
|
|
6 |
0 |
elsif (builtin::blessed($env_or_req) and $env_or_req->isa('PlackX::Framework::Request')) { } |
|
206
|
35 |
6 |
if (ref $env_or_req and ref $env_or_req eq 'HASH') { } |
|
|
6 |
0 |
elsif (builtin::blessed($env_or_req) and $env_or_req->isa('PlackX::Framework::Request')) { } |