Branch Coverage

blib/lib/Gantry/Engine/CGI.pm
Criterion Covered Total %
branch 7 106 6.6


line true false branch
81 0 1 if ($$self{'config'}{'GantryConfInstance'})
139 0 0 unless $content_length
141 0 0 if $content_length > 1000000
178 0 0 if (defined $$self{'locations'}{$$self{'config'}{'location'}})
181 0 0 unless $mod
185 0 0 if ($@)
198 0 0 if $mod
199 0 0 if ($@)
215 0 0 unless $param
244 0 0 $self->status ? :
252 0 0 if ($@)
319 1 0 if (defined $hash_ref)
332 0 0 if (defined $hash_ref)
392 0 0 if $ENV{'REQUEST_METHOD'} eq 'POST'
396 0 0 if ($$c{'.cgi_error'})
410 0 0 if (scalar @values > 1) { }
448 0 0 if ($self->fish_config('unfiltered_params') and $self->fish_config('unfiltered_params') =~ /(1|on)/i) { }
532 0 5 if defined $conf and defined $$conf{$param}
536 5 0 if ($$self{'cgi_obj'}{'config'}{'GantryLocation'})
545 3 1 if (defined $$glocs{$path} and defined $$glocs{$path}{$param})
568 5 0 unless defined $instance
582 0 0 if (defined $conf)
590 0 0 if $self->cache_inited
594 0 0 if ($gantry_cache)
599 0 0 if ($self->engine_cycle == 1)
604 0 0 if ($a[0] eq 'gantryconf')
621 0 0 if defined $conf
637 0 0 if (defined $conf)
640 0 0 if ($gantry_cache and not $gantry_cache_hit)
676 0 0 wantarray ? :
723 0 0 if (defined $hash_ref)
805 0 0 if uc $status eq 'DECLINED'
806 0 0 if uc $status eq 'OK'
807 0 0 if uc $status eq 'MOVED_PERMANENTLY'
808 0 0 if uc $status eq 'REDIRECT'
809 0 0 if uc $status eq 'FORBIDDEN'
810 0 0 if uc $status eq 'AUTH_REQUIRED'
811 0 0 if uc $status eq 'HTTP_UNAUTHORIZED'
812 0 0 if uc $status eq 'BAD_REQUEST'
813 0 0 if uc $status eq 'SERVER_ERROR'
826 0 0 $ENV{'SSL_PROTOCOL'} ? :
837 0 0 if $status eq 'DECLINED'
873 0 0 $self->content_type ? :
0 0 $self->status ? :
898 0 0 if $self->no_cache
929 0 0 if (defined $ENV{'REQUEST_METHOD'} and $ENV{'REQUEST_METHOD'} eq 'POST') { }
0 0 elsif (defined $ENV{'REQUEST_METHOD'} and $ENV{'REQUEST_METHOD'} eq 'GET') { }
0 0 elsif (defined $ENV{'REQUEST_METHOD'}) { }
934 0 0 if ($ENV{'QUERY_STRING'})
949 0 0 unless defined $data and $data ne ''
963 0 0 if ($#res <= 0) { }
977 0 0 if ($$hash{$name}) { }
978 0 0 if (ref $$hash{$name}) { }