Branch Coverage

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


line true false branch
19 1 5 unless ($conf->{'host'})
36 0 0 if ($abs and $abs ne $path)
41 0 0 if ($@)
48 0 0 unless ($result->is_clean)
82 0 0 unless defined $sock
90 0 0 unless ($sock->print("GET $uri HTTP/1.0\n\n"))
96 0 0 unless ($sock->flush)
105 0 0 if ($output =~ /^\s*$/) { }
0 0 elsif ($output =~ /^HTTP(.*)/) { }
0 0 elsif ($output =~ /^Server:\s*(\S*)/) { }
113 0 0 unless $h =~ m[/1\.0\s+200\s]
115 0 0 unless $1 =~ /^fprotd/
122 0 0 unless ($t)
127 0 0 if ($t->[1]{'version'} ne "1.0")
138 0 0 if ($t->[0] eq 'S') { }
0 0 elsif ($t->[0] eq 'E') { }
144 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') { }
145 0 0 length $virii ? :
152 0 0 if defined $t->[2]{'code'}
155 0 0 if ($tag eq 'detected') { }
0 0 elsif ($tag eq 'fprot-results') { }
159 0 0 if $curText
184 0 0 unless (defined $code)
192 0 0 if ($code < 3 or $code == 5)
199 0 0 if ($code > 10)
201 0 0 if (length $virii) { }
0 0 elsif ($msg =~ /^\tmessage:\s+(\S.*)/m) { }