Branch Coverage

blib/lib/Apache/ASP/CGI.pm
Criterion Covered Total %
branch 20 32 62.5


line true false branch
19 35 4 if (defined $class)
20 3 32 if (ref $class or $class =~ /Apache::ASP::CGI/) { }
55 45 6 unless ($Apache::ASP::CGI::StructsDefined)
89 0 51 if (defined $ENV{'GATEWAY_INTERFACE'} and $ENV{'GATEWAY_INTERFACE'} =~ /^CGI/) { }
114 0 1172 if ($env_key =~ /^HTTP_(.+)$/ or $env_key =~ /^(CONTENT_TYPE|CONTENT_LENGTH)$/)
123 51 0 unless defined $self->dir_config->get('NoState')
130 51 0 unless $self->env('SCRIPT_NAME')
147 6 0 if (defined $status) { }
165 0 106 if $k =~ /^content\-type$/i
166 1 105 if (ref $v) { }
191 0 1 if ($name =~ /content-type/i) { }
205 0 81 ref($_) =~ /SCALAR/ ? :
211 0 67 if (wantarray) { }
230 0 78 unless $_
231 78 0 if (ref $_ and /CODE/)
233 0 78 if ($@)