Branch Coverage

blib/lib/Masscan/Scanner.pm
Criterion Covered Total %
branch 0 46 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'} ? :
202 0 0 $? >> 8 == 0 ? :
220 0 0 unless open my $fh, '<', $path
254 0 0 if ($self->_is_valid_host($host))
256 0 0 if (is_domain($host)) { }
284 0 0 if (is_ipv4($test) or is_ipv6($test) or is_domain($test))
304 0 0 if ($port =~ /^\d+$/mx or $port =~ /^\d+-\d+$/mx)
331 0 0 $self->_is_valid_host($_) ? :
0 0 if (/hosts/)
332 0 0 $self->_is_valid_port($_) ? :
0 0 if (/ports/)
333 0 0 if (/args/)
392 0 0 if ($answer->can('address'))
450 0 0 $^O =~ /Win/ ? :
454 0 0 unless opendir my $dh, $dir
462 0 0 unless $file =~ /^$binary(?:.exe)?$/
464 0 0 unless -r $path and -x _ || -l _
478 0 0 $self->verbose ? :