Branch Coverage

blib/lib/Masscan/Scanner.pm
Criterion Covered Total %
branch 0 48 0.0


line true false branch
113 0 0 $self->_is_valid_host($host) ? :
121 0 0 $self->_is_valid_port($port) ? :
140 0 0 $self->sudo ? :
147 0 0 unless $binary and $binary =~ /masscan$/mix
152 0 0 if ($scan->{'success'}) { }
161 0 0 $scan->{'success'} ? :
171 0 0 unless $sres
204 0 0 $? >> 8 == 0 ? :
224 0 0 unless open my $fh, '<', $path
264 0 0 if ($self->_is_valid_host($host))
266 0 0 if (is_domain($host)) { }
294 0 0 if (is_ipv4($test) or is_ipv6($test) or is_domain($test))
314 0 0 if ($port =~ /^\d+$/mx or $port =~ /^\d+-\d+$/mx)
341 0 0 $self->_is_valid_host($_) ? :
0 0 if (/hosts/)
342 0 0 $self->_is_valid_port($_) ? :
0 0 if (/ports/)
343 0 0 if (/args/)
402 0 0 if ($answer->can('address'))
460 0 0 $^O =~ /Win/ ? :
464 0 0 unless opendir my $dh, $dir
472 0 0 unless $file =~ /^$binary(?:.exe)?$/
474 0 0 unless -r $path and -x _ || -l _
488 0 0 $self->verbose ? :