Condition Coverage

blib/lib/PlackX/Framework/Handler.pm
Criterion Covered Total %
condition 37 70 52.8


and 3 conditions

line !l l&&!r l&&r condition
31 11 0 0 $serve_static_files && do { require Plack::App::File; 'Plack::App::File'->new('root', $static_docroot)->to_app }
53 0 0 0 ref $main_resp and $main_resp->[0] != 404
55 0 0 0 ref $file_resp and $file_resp->[0] != 404
65 11 0 0 $base and length $base
11 0 0 $base and length $base and substr($base, 0, 1) ne "/"
117 11 0 0 $ret and is_valid_response($ret)
122 0 0 31 $result and ref $result
135 11 0 0 $ret and is_valid_response($ret)
139 0 22 3 $response->cleanup_callbacks and scalar @{$response->cleanup_callbacks} > 0
157 0 0 22 $filters and ref $filters eq "ARRAY"
161 37 0 0 $response and is_valid_response($response)
168 1 1 33 defined $response and ref $response
169 28 3 2 ref $response eq "ARRAY" and @$response == 3 || @$response == 2
170 4 1 26 builtin::blessed($response) and $response->can("finalize")
178 1 23 2 $resp->can("stream") and $resp->stream
197 0 6 35 ref $env_or_req and ref $env_or_req eq "HASH"
0 0 6 builtin::blessed($env_or_req) and $env_or_req->isa("PlackX::Framework::Request")
206 0 6 35 ref $env_or_req and ref $env_or_req eq "HASH"
0 0 6 builtin::blessed($env_or_req) and $env_or_req->isa("PlackX::Framework::Request")

or 2 conditions

line l !l condition
64 0 11 eval { do { $class->app_namespace->app_base } } || eval { do { $class->app_namespace->uri_prefix } } || ''
87 6 35 $request->stash || $response->stash || {}

or 3 conditions

line l !l&&r !l&&!r condition
78 0 41 0 $maybe_resp || ($app_namespace . '::Response')->new->set_defaults
109 35 6 0 $rt_engine //= ($class->app_namespace . '::Router::Engine')->instance
169 1 1 3 @$response == 3 || @$response == 2