Branch Coverage

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


line true false branch
20 1 73 if $params{'ca_cert_file'} and not -f $params{'ca_cert_file'}
23 1 72 if $params{'ca_cert_dir'} and not -d $params{'ca_cert_dir'}
46 10 62 if ($params{'proxy'}) { }
62 32 36 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 38 30 unless ($result->is_success)
76 30 8 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 16 16 if ($self->{'no_ssl_check'}) { }
135 16 0 if $self->{'ua'}->can('ssl_opts')
141 0 16 if $FusionInventory::Agent::HTTP::Client::EVAL_ERROR
147 0 16 if ($self->{'logger'}{'verbosity'} > 5)
151 16 0 if ($LWP::VERSION >= 6) { }
153 16 0 if $self->{'ca_cert_file'}
155 0 16 if $self->{'ca_cert_dir'}
158 0 0 if $IO::Socket::SSL::VERSION < 1.14
177 0 0 $self->{'no_ssl_check'} ? :