Condition Coverage

blib/lib/HTTP/Server/Encrypt.pm
Criterion Covered Total %
condition 25 77 32.4


and 3 conditions

line !l l&&!r l&&r condition
44 0 0 5 defined $log_dir and $log_dir eq 'no'
45 0 5 0 defined $log_dir and $log_dir
136 0 0 0 defined $k and $k
0 0 0 defined $k and $k and defined $v
0 0 0 defined $k and $k and defined $v and $v
192 2 0 2 defined $client_auth and $client_auth eq $HTTP::Server::Encrypt::right_auth
232 0 0 0 defined $k_post and $k_post
0 0 0 defined $k_post and $k_post and defined $v_post
0 0 0 defined $k_post and $k_post and defined $v_post and $v_post
257 1 0 1 -e $script_file and -r $script_file
1 0 1 -e $script_file and -r $script_file and -s $script_file
280 0 0 1 not $HTTP::Server::Encrypt::blowfish_encrypt and $^O eq 'linux'
358 0 0 3 not $body and $status != 200
0 0 3 not $body and $status != 200 and $status != 301
0 0 3 not $body and $status != 200 and $status != 301 and $status != 302
366 0 0 3 defined $body and $body
0 0 3 defined $body and $body and not defined $header{'Content-Length'}
376 0 0 3 defined $body and $body

or 2 conditions

line l !l condition
30 5 0 $http_conf{'port'} || 80
31 0 5 $http_conf{'protocol'} || 'http'
32 5 0 $http_conf{'min_spare'} || 10
33 5 0 $http_conf{'max_spare'} || 20
34 5 0 $http_conf{'docroot'} || 'htdoc'
35 0 5 $http_conf{'cache_expires_secs'} || 3600
353 3 0 shift() || 200

or 3 conditions

line l !l&&r !l&&!r condition
56 5 0 0 $username or $passwd
109 0 0 4 not $chunk or length $chunk > 16384
116 0 0 4 not $method =~ /^(?:GET|POST)$/ or $request_uri =~ /\.\./