Branch Coverage

blib/lib/File/VirusScan/Engine/Daemon/FPROT/V4.pm
Criterion Covered Total %
branch 3 60 5.0


line true false branch
19 1 6 unless ($$conf{'host'})
35 1 0 if (abs_path($path) ne $path)
40 0 0 if ($@)
47 0 0 unless ($result->is_clean)
81 0 0 unless defined $sock
89 0 0 unless ($sock->print("GET $uri HTTP/1.0\n\n"))
95 0 0 unless ($sock->flush)
104 0 0 if ($output =~ /^\s*$/) { }
0 0 elsif ($output =~ /^HTTP(.*)/) { }
0 0 elsif ($output =~ /^Server:\s*(\S*)/) { }
112 0 0 unless $h =~ m[/1\.0\s+200\s]
114 0 0 unless $1 =~ /^fprotd/
121 0 0 unless ($t)
126 0 0 if ($$t[1]{'version'} ne '1.0')
137 0 0 if ($$t[0] eq 'S') { }
0 0 elsif ($$t[0] eq 'E') { }
143 0 0 if ($tag eq 'name') { }
0 0 elsif ($tag eq 'accuracy' or $tag eq 'disinfectable' or $tag eq 'message') { }
0 0 elsif ($tag eq 'error') { }
0 0 elsif ($tag eq 'summary') { }
144 0 0 length $virii ? :
151 0 0 if defined $$t[2]{'code'}
154 0 0 if ($tag eq 'detected') { }
0 0 elsif ($tag eq 'fprot-results') { }
158 0 0 if $curText
183 0 0 unless (defined $code)
191 0 0 if ($code < 3 or $code == 5)
198 0 0 if ($code > 10)
200 0 0 if (length $virii) { }
0 0 elsif ($msg =~ /^\tmessage:\s+(\S.*)/m) { }