Branch Coverage

lib/LWP/CurlLog.pm
Criterion Covered Total %
branch 13 24 54.1


line true false branch
22 1 1 if ($url =~ /[=&;?]/) { }
28 2 0 if ($curl_options)
31 0 2 if ($request->method and $request->method ne 'GET' || $request->content_length)
35 2 0 if ($header =~ /^(Content-Length|User-Agent)$/i)
42 0 2 if ($request->header('Content-Length'))
53 0 2 if ($log_output)
62 1 1 if ($logfh)
65 0 1 if ($log_file eq 'STDOUT') { }
0 1 elsif ($log_file eq 'STDERR') { }
0 1 elsif ($log_file =~ m[^~/]) { }
74 0 0 unless open $logfh, '>>', $log_file
77 0 1 unless open $logfh, '>>', $log_file