Condition Coverage

lib/Egg/Request.pm
Criterion Covered Total %
condition 0 63 0.0


and 3 conditions

line !l l&&!r l&&r condition
171 0 0 0 $_[0] && exists $$cookie{$_[0]}

or 2 conditions

line l !l condition
97 0 0 $e->can('run') || die(' $e->run is not found. ')
137 0 0 $ENV{'PATH_INFO'} || $ENV{'REDIRECT_URI'} || '/'
139 0 0 $ENV{'SCRIPT_NAME'} || ''
175 0 0 shift() || (return '')
176 0 0 $req->cookies->{$key} || (return '')
231 0 0 shift() || \''
232 0 0 shift() || \''
233 0 0 $$body || ''
237 0 0 $req->e->response->status || (return 0)

or 3 conditions

line l !l&&r !l&&!r condition
22 0 0 0 $_[0]{'request'} ||= $r_class->new(@_)
66 0 0 0 $ENV{'HTTP_HOST'} or $ENV{'SERVER_NAME'}
67 0 0 0 $ENV{'QUERY_STRING'} or $ENV{'REDIRECT_QUERY_STRING'}
72 0 0 0 $ENV{uc($e->project_name) . '_REQUEST_CLASS'} || do { $ENV{'MOD_PERL'} && 'ModPerl::VersionUtil'->require ? do { my $mp_util = 'ModPerl::VersionUtil'; $Egg::Request::MP_VERSION = $mp_util->mp_version; $Egg::Request::MP_VERSION > 2 ? 'Egg::Request::Apache::MP20' : ($mp_util->is_mp2 ? 'Egg::Request::Apache::MP20' : ($mp_util->is_mp19 ? 'Egg::Request::Apache::MP19' : ($mp_util->is_mp1 ? 'Egg::Request::Apache::MP13' : do { $Egg::Request::MP_VERSION = 0; warn " Unsupported mod_perl v$Egg::Request::MP_VERSION "; 'Egg::Request::CGI' }))) } : 'Egg::Request::CGI' }
153 0 0 0 $$req{'parameters'} ||= do { my $r = $req->r; my %params; $params{$_} = $r->param($_) foreach ($r->param); \%params }
165 0 0 0 $$req{'cookies'} ||= do { {} unless 'CGI::Cookie'->fetch }
181 0 0 0 shift() || croak('I want cookie key.')
191 0 0 0 $ENV{'HTTPS'} && lc $ENV{'HTTPS'} eq 'on' || $ENV{'SERVER_PORT'} && $ENV{'SERVER_PORT'} == 443
0 0 0 $_[0]{'secure'} ||= $ENV{'HTTPS'} && lc $ENV{'HTTPS'} eq 'on' || $ENV{'SERVER_PORT'} && $ENV{'SERVER_PORT'} == 443 ? 1 : 0
197 0 0 0 $_[0]{'scheme'} ||= $_[0]->secure ? 'https' : 'http'
201 0 0 0 $$req{'uri'} ||= do { require URI; my $uri = 'URI'->new; my $path = $req->path; $path =~ s[^/][]; $uri->scheme($req->scheme); $uri->host($req->host); $uri->port($req->port); $uri->path($path); $uri->query($ENV{'QUERY_STRING'}) if $ENV{'QUERY_STRING'}; $uri->canonical }
215 0 0 0 $$req{'remote_host'} ||= do { $req->remote_addr unless $ENV{'REMOTE_HOST'} or gethostbyaddr pack('C*', split(/\./, $req->remote_addr, 0)), 2 }
216 0 0 0 $ENV{'REMOTE_HOST'} or gethostbyaddr pack('C*', split(/\./, $req->remote_addr, 0)), 2
223 0 0 0 $$req{'host_name'} ||= do { my $host = $req->host; $host =~ s/\:\d+$//; $host }