Branch Coverage

lib/CGI/CurlLog.pm
Criterion Covered Total %
branch 16 34 47.0


line true false branch
19 0 1 if (not $opts{'file'}) { }
24 0 1 if ($file2 =~ m[^~/])
28 0 1 unless open $opts{'fh'}, '>>', $file2
34 0 1 unless ($ENV{'GATEWAY_INTERFACE'})
38 0 1 $ENV{'HTTPS'} ? :
41 1 0 if ($url =~ /[=&;?]/) { }
47 1 0 if ($opts{'options'})
50 0 1 if ($ENV{'REQUEST_METHOD'})
51 0 0 if ($ENV{'REQUEST_METHOD'} ne 'GET' or $ENV{'CONTENT_LENGTH'})
55 0 1 if ($ENV{'CONTENT_TYPE'})
58 0 1 if ($ENV{'HTTP_ACCEPT'})
61 0 1 if ($ENV{'HTTP_AUTHORIZATION'})
64 0 1 if ($ENV{'HTTP_COOKIE'})
70 0 1 if ($ENV{'CONTENT_LENGTH'})
84 0 1 if ($opts{'response'})
93 0 1 if ($opts{'response'})
101 0 1 if ($opts{'timing'})