Branch Coverage

blib/lib/FusionInventory/Agent/HTTP/Server.pm
Criterion Covered Total %
branch 13 46 28.2


line true false branch
35 0 0 unless $target->isa('FusionInventory::Agent::Target::Server')
41 6 7 if ($params{'trust'})
44 12 3 if @addresses
56 0 6 unless ($request)
66 0 6 if ($method ne 'GET') { }
73 6 0 if ($path eq '/')
79 0 0 if ($path =~ m[^/deploy/getFile/./../([\w\d/-]+)$])
85 0 0 if ($path =~ m[^/now(?:/(\S*))?$])
91 0 0 if ($path eq '/status')
97 0 0 if ($path =~ m[^/(logo.png|site.css|favicon.ico)$])
123 0 6 unless ($template)
171 0 0 unless $sha512 =~ /^(.)(.)(.{6})/
177 0 0 if ($FusionInventory::Agent::HTTP::Server::EVAL_ERROR)
187 0 0 unless -f $_ . '/' . $subFilePath
191 0 0 unless $sha->hexdigest eq $sha512
197 0 0 if ($path) { }
215 0 0 unless $target->isa('FusionInventory::Agent::Target::Server')
218 0 0 unless isPartOf($clientIp, $addresses, $logger)
226 0 0 if ($self->_isTrusted($clientIp))
284 9 9 if isPartOf($address, $trusted_addresses, $self->{'logger'})
303 0 7 unless ($self->{'listener'})
318 0 6 unless $self->{'listener'}
321 0 6 unless $socket