Branch Coverage

blib/lib/FusionInventory/Agent/HTTP/Server.pm
Criterion Covered Total %
branch 0 44 0.0


line true false branch
35 0 0 unless $target->isa('FusionInventory::Agent::Target::Server')
41 0 0 if ($params{'trust'})
44 0 0 if @addresses
56 0 0 unless ($request)
66 0 0 if ($method ne 'GET') { }
73 0 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 0 unless ($template)
171 0 0 unless $sha512 =~ /^(.)(.)(.{6})/
179 0 0 unless -f $_ . '/' . $subFilePath
183 0 0 unless $sha->hexdigest eq $sha512
189 0 0 if ($path) { }
207 0 0 unless $target->isa('FusionInventory::Agent::Target::Server')
210 0 0 unless isPartOf($clientIp, $addresses, $logger)
218 0 0 if ($self->_isTrusted($clientIp))
271 0 0 if isPartOf($address, $trusted_addresses, $$self{'logger'})
294 0 0 unless ($$self{'listener'})
307 0 0 unless $$self{'listener'}
310 0 0 unless $socket