lib/Nmap/Scanner/Hosts.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Nmap/Scanner/Hostname.pm ↑ Summary lib/Nmap/Scanner/NmapRun.pm »
1  
2 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 3 ▶use Class::Generate qw(class);
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 class 'Nmap::Scanner::Hosts' => {
7 'up' => {qw(type $ default 0)},
8 'down' => {qw(type $ default 0)},
9 'total' => {qw(type $ default 0)},
10 '&as_xml' => q!qq(<hosts up="$self->{up}" down="$self->{down}" ) .
11 qq(total="$self->{total}"/>);!
12 };
13  
14 =pod
15  
16 =head1 DESCRIPTION
17  
18 This class represents a hosts summary object as represented by the scanning output from
19 nmap.
20  
21 =head2 up()
22  
23 number of hosts scanned that were reachable.
24  
25 =head2 down()
26  
27 number of hosts scanned that were not reachable.
28  
29 =head2 total()
30  
31 Total number of hosts scanned.
32  
33 =cut
34  
35 3 1;
« lib/Nmap/Scanner/Hostname.pm ↑ Summary lib/Nmap/Scanner/NmapRun.pm »