Branch Coverage

blib/lib/FusionInventory/Agent/HTTP/Client/OCS.pm
Criterion Covered Total %
branch 17 30 56.6


line true false branch
26 2 0 if ('Compress::Zlib'->require) { }
0 0 elsif (canRun('gzip')) { }
57 0 7 ref $params{'url'} eq 'URI' ? :
66 0 7 unless ($request_content)
78 1 6 unless $response->is_success
81 1 5 unless ($response_content)
87 0 5 unless ($uncompressed_response_content)
102 2 3 if ($FusionInventory::Agent::HTTP::Client::OCS::EVAL_ERROR)
117 0 0 $$self{'compression'} eq 'gzip' ? :
7 0 $$self{'compression'} eq 'zlib' ? :
125 3 2 if ($data =~ /(\x78\x9C.*)/s) { }
0 2 elsif ($data =~ /(\x1F\x8B\x08.*)/s) { }
2 0 elsif ($data =~ m[(|)[^<]*(<.*>)\s*$]s) { }
158 0 1 unless $out
184 0 1 unless $out