Condition Coverage

blib/lib/CGI/Utils.pm
Criterion Covered Total %
condition 15 125 12.0


and 3 conditions

line !l l&&!r l&&r condition
96 6 0 0 defined $ENV{'MOD_PERL'} and $ENV{'MOD_PERL'} ne ''
194 41 0 0 $ENV{'MOD_PERL'} and defined $mod_perl::VERSION
507 10 0 0 $port != 80 and $port != 443
578 0 0 1 defined $query_str and $query_str ne ''
690 0 0 10 ref $param_hash eq 'HASH' and %$param_hash
691 7 0 3 defined $sep and $sep ne ''
749 0 0 0 $cookies and %$cookies
826 0 0 0 $max_size > 0 and $content_length > $max_size
831 0 0 0 $method eq 'post' and $ENV{'CONTENT_TYPE'} =~ m[^multipart/form-data]
861 0 0 0 lc $method eq 'post' and $self->getContentType =~ m[^multipart/form-data]
958 0 0 0 scalar @_ == 1 and wantarray
989 0 0 0 defined $$self{'_multivalue_delimiter'} and $$self{'_multivalue_delimiter'} ne ''
0 0 0 defined $multivalue_delimiter and $multivalue_delimiter ne ''
1081 0 0 0 defined $host and $host ne ''
1137 6 0 4 defined $https && lc $https eq 'on'
1139 0 10 0 defined $port and $port == 443
1250 0 0 0 $arg_count == 1 and ref $args[0] ne 'HASH'
1266 0 0 0 $content_type =~ /^text/ and not $content_type =~ /\bcharset\b/
1276 0 0 0 defined $cookies and $cookies
1297 0 0 0 defined $cookies and $cookies
1303 0 0 0 defined $content_type and $content_type ne ''
1346 0 0 0 $self->_isModPerl and $r = $self->_getApacheRequest
1360 0 0 0 $arg_count == 1 and ref $args[0] ne 'HASH'
1872 0 0 0 substr($buf, -1, 1) eq $end_char and $buf =~ /^--$boundary(?:--)?$eol$/
0 0 0 substr($buf, -1, 1) eq $end_char and $buf =~ /^--$boundary(?:--)?$eol$/ and $body =~ /$eol$/
1902 0 0 0 substr($buf, -1, 1) eq $end_char and $buf =~ /^--$boundary(?:--)?$eol$/
0 0 0 substr($buf, -1, 1) eq $end_char and $buf =~ /^--$boundary(?:--)?$eol$/ and $buf2 =~ /$eol$/

or 2 conditions

line l !l condition
713 0 0 $ENV{'HTTP_COOKIE'} || $ENV{'COOKIE'} || ''
716 1 0 $ENV{'HTTP_COOKIE'} || $ENV{'COOKIE'} || ''
821 0 0 $ENV{'CONTENT_LENGTH'} || 0
1263 0 0 $$params{'charset'} || 'ISO-8859-1'
1265 0 0 $content_type ||= 'text/html'
1606 0 0 $$params{'path'} || '/'
1674 0 0 $$map{$2} || 1

or 3 conditions

line l !l&&r !l&&!r condition
152 0 3 0 ref $proto || $proto
390 1 0 20 $ref eq 'ARRAY' or $ref =~ /=ARRAY/
546 0 0 0 $r->uri || $r->path_info
548 9 0 0 $ENV{'REQUEST_URI'} || $ENV{'PATH_INFO'}
824 0 0 0 $$args{'max_post_size'} || $$self{'_max_post_size'}
831 0 0 0 $method eq 'get' or $method eq 'head'
990 0 0 0 not defined $multivalue_delimiter or $multivalue_delimiter eq ''
1297 0 0 0 defined $$params{'expires'} or defined $cookies and $cookies
1662 0 0 0 not $offset or lc $offset eq 'now'
1979 0 0 0 $char eq $end_char or $cur_len == $len