Branch Coverage

blib/lib/AIS/client.pm
Criterion Covered Total %
branch 10 48 20.8


line true false branch
57 0 0 if ($$v{'last_access'} < $t - $maxage)
89 0 1 exists $ENV{'SSL_CIPHER'} ? :
90 0 1 defined $params{'freq'} ? :
100 0 1 if ($@)
117 1 0 if ($freq)
118 0 1 unless $$ % $freq
121 0 1 if ($ENV{'QUERY_STRING'} eq 'LOGOUT')
123 0 0 if ($Coo) = $ENV{'HTTP_COOKIE'} =~ /${SessionPrefix}_session=(\w+)/
149 0 1 if ($Coo) { }
155 0 0 if (exists $Sessions{$Coo}{'identity'} and $Sessions{$Coo}{'identity'} ne 'ERROR') { }
162 0 0 if ($ENV{'QUERY_STRING'} =~ /^OTU_KEY=(\w+)/) { }
166 0 0 unless my($method, $host, $port, $path) = $aissri =~ m[^(\w+)://([^:/]+):?(\d*)(.+)$]
170 0 0 unless ($method eq 'http')
181 0 0 unless my($AISXML) = $Response =~ m[(.+)]is
195 0 0 unless $AISXML =~ m[<$_>(.+)]is
200 0 0 if ($aisvar{'identity'} eq 'NULL')
213 0 0 if (exists $Sessions{$Coo}{'PostData'})
214 0 0 unless pipe POSTREAD, POSTWRITE
215 0 0 if (fork) { }
227 0 0 unless close POSTWRITE
249 0 1 if ($ENV{'QUERY_STRING'} eq 'AIS_INITIAL')
253 0 1 if $ENV{'QUERY_STRING'} eq 'AIS_INITIAL2'
261 0 1 if $ENV{'REQUEST_METHOD'} =~ /POST/i
310 0 0 if ($Identity eq 'ERROR')