Condition Coverage

blib/lib/YATT/Lite/WebMVC0/SiteApp.pm
Criterion Covered Total %
condition 46 109 42.2


and 3 conditions

line !l l&&!r l&&r condition
183 7 0 1 $backend = $self->{'cf_backend'} and my $sub = $backend->can('startup')
204 0 0 167 not $self->{'cf_no_unicode_params'} and $self->{'cf_output_encoding'}
210 143 21 3 $self->{'loc2psgi_dict'} and my $psgi_app = $self->lookup_psgi_mount($env->{'PATH_INFO'})
271 1 0 0 $self->{'cf_debug_psgi'} and $self->has_htdebug('static')
339 37 0 0 @rest == 2 and defined $rest[-1]
37 0 0 @rest == 2 and defined $rest[-1] and ref $args eq 'HASH'
389 0 22 0 defined $_[0] and ref $_[0] eq 'SCALAR'
22 0 0 defined $_[0] and ref $_[0] eq 'SCALAR' and not ref ${$_[0];}
398 0 156 8 not $self->{'cf_no_trim_script_name'} and $env->{'REDIRECT_HANDLER'}
156 0 8 not $self->{'cf_no_trim_script_name'} and $env->{'REDIRECT_HANDLER'} and ($env->{'REDIRECT_STATUS'} // 0) == 200
156 0 8 not $self->{'cf_no_trim_script_name'} and $env->{'REDIRECT_HANDLER'} and ($env->{'REDIRECT_STATUS'} // 0) == 200 and $env->{'SCRIPT_FILENAME'}
420 0 164 16 not $self->{'cf_per_role_docroot'} and nonempty($env->{'PATH_TRANSLATED'})
164 0 16 not $self->{'cf_per_role_docroot'} and nonempty($env->{'PATH_TRANSLATED'}) and $self->is_path_translated_mode($env)
449 8 4 4 $env->{'REQUEST_URI'} && $env->{'REDIRECT_URL'} && "$env->{'REQUEST_URI'}$file" eq $env->{'REDIRECT_URL'}
664 0 0 2 defined $remote_addr and $remote_addr ne ''

or 2 conditions

line l !l condition
195 0 0 $env->{$_} // '(undef)'
398 8 0 $env->{'REDIRECT_STATUS'} // 0
496 16 0 $env->{'REDIRECT_STATUS'} // 0
537 0 0 $self->{'cf_doc_root'} // ''
669 0 2 $self->{'cf_debug_allowed_ip'} // ['127.0.0.1']

or 3 conditions

line l !l&&r !l&&!r condition
59 0 24 0 $self->{'cf_per_role_docroot_key'} ||= $self->default_per_role_docroot_key
60 0 24 0 $self->{'cf_default_role'} ||= $self->default_default_role
170 8 0 0 defined $self->{'cf_doc_root'} or defined $self->{'cf_per_role_docroot'}
199 3 0 167 $self->has_forbidden_path($env->{'PATH_INFO'}) // $self->has_forbidden_path($env->{'PATH_TRANSLATED'})
299 142 0 20 not $error or is_done($error)
17 2 1 ref $error eq 'ARRAY' or ref $error eq 'CODE'
352 0 1 0 $self->{'cf_psgi_static'} || $self->psgi_file_app($self->{'cf_doc_root'})
365 1 0 0 $self->{'cf_psgi_fallback'} ||= $self->psgi_file_app($self->{'cf_doc_root'})
449 0 4 12 $is_index ||= $env->{'REQUEST_URI'} && $env->{'REDIRECT_URL'} && "$env->{'REQUEST_URI'}$file" eq $env->{'REDIRECT_URL'}
461 0 0 0 $user ||= $self->{'cf_default_role'}
551 0 0 0 $env->{'HTTP_X_REAL_IP'} // $env->{'HTTP_X_CLIENT_IP'}
0 0 0 ($env->{'HTTP_X_REAL_IP'} // $env->{'HTTP_X_CLIENT_IP'}) // do { if (defined(my $forward = $env->{'HTTP_X_FORWARDED_FOR'})) { [split(/(?:\s*,\s*|\s+)/, $forward, 0)]->[0]; } else { $env->{'REMOTE_ADDR'}; } }
612 0 0 0 try_invoke($back, 'clone') // $back
649 0 0 0 $self->{'cf_site_config'}{$name} // $default
656 0 2 0 $remote_addr //= do { my YATT::Lite::WebMVC0::SiteApp::Env $env = $YATT::Lite::WebMVC0::SiteApp::CON->env; (($env->{'HTTP_X_REAL_IP'} // $env->{'HTTP_X_CLIENT_IP'}) // $env->{'HTTP_X_FORWARDED_FOR'}) // $env->{'REMOTE_ADDR'} }
661 0 0 2 $env->{'HTTP_X_REAL_IP'} // $env->{'HTTP_X_CLIENT_IP'}
0 0 2 ($env->{'HTTP_X_REAL_IP'} // $env->{'HTTP_X_CLIENT_IP'}) // $env->{'HTTP_X_FORWARDED_FOR'}
0 2 0 (($env->{'HTTP_X_REAL_IP'} // $env->{'HTTP_X_CLIENT_IP'}) // $env->{'HTTP_X_FORWARDED_FOR'}) // $env->{'REMOTE_ADDR'}