Branch Coverage

blib/lib/FusionInventory/Agent/HTTP/Client.pm
Criterion Covered Total %
branch 25 38 65.7


line true false branch
19 1 58 if $params{'ca_cert_file'} and not -f $params{'ca_cert_file'}
22 1 57 if $params{'ca_cert_dir'} and not -d $params{'ca_cert_dir'}
46 12 45 if ($params{'proxy'}) { }
62 35 33 if $scheme eq 'https' and not $$self{'ssl_set'}
66 0 68 if ($FusionInventory::Agent::HTTP::Client::OSNAME eq 'MSWin32' and $scheme eq 'https')
74 41 27 unless ($result->is_success)
76 30 11 if ($result->code == 401) { }
77 15 15 if ($$self{'user'} and $$self{'password'}) { }
96 0 15 if ($FusionInventory::Agent::HTTP::Client::OSNAME eq 'MSWin32' and $scheme eq 'https')
102 0 15 unless ($result->is_success)
130 17 18 if ($$self{'no_ssl_check'}) { }
134 17 0 if $$self{'ua'}->can('ssl_opts')
141 0 18 if $FusionInventory::Agent::HTTP::Client::EVAL_ERROR
147 0 18 if ($$self{'logger'}{'verbosity'} > 5)
151 18 0 if ($LWP::VERSION >= 6) { }
152 18 0 if $$self{'ca_cert_file'}
154 0 18 if $$self{'ca_cert_dir'}
158 0 0 if $IO::Socket::SSL::VERSION < 1.14
177 0 0 $$self{'no_ssl_check'} ? :