Branch Coverage

blib/lib/FusionInventory/Agent/HTTP/Client/Fusion.pm
Criterion Covered Total %
branch 23 40 57.5


line true false branch
24 0 21 if ($params{'debug'})
37 0 6 unless length $val
50 0 6 if $self->{'debug'}
53 0 6 ref $params{'url'} eq 'URI' ? :
56 0 6 exists $params{'method'} && $params{'method'} =~ /^GET|POST$/ ? :
60 0 6 if ($method eq 'POST')
63 0 0 if exists $params{'args'}{'uuid'}
68 0 18 if (ref $params{'args'}{$k} eq 'ARRAY') { }
6 12 elsif (ref $params{'args'}{$k} eq 'HASH') { }
6 12 elsif ($k ne 'action' and length $params{'args'}{$k}) { }
81 6 0 if $method eq 'GET'
83 6 0 if $self->{'logger'}
86 6 0 if ($method eq 'GET') { }
89 0 0 if $self->{'logger'}
104 1 5 unless $response->is_success
109 1 4 unless ($content)
111 1 0 if $self->{'logger'}
117 0 4 unless my $decoder = 'JSON::PP'->new
123 1 3 if ($FusionInventory::Agent::HTTP::Client::Fusion::EVAL_ERROR)
127 1 0 if $self->{'logger'}