lib/Nmap/Scanner/RunStats.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/Port.pm ↑ Summary lib/Nmap/Scanner/RunStats/Finished.pm »
1  
2 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use Class::Generate qw(class);
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 3 class 'Nmap::Scanner::RunStats' => {
6 qw(finished Nmap::Scanner::RunStats::Finished
7 hosts Nmap::Scanner::Hosts),
8 '&as_xml' => q!
9  
10 my $xml = "<runstats>";
11 $xml .= $self->{'finished'}->as_xml() if $self->{'finished'};
12 $xml .= $self->{'hosts'}->as_xml() if $self->{'hosts'};
13 $xml .= "</runstats>\n";
14  
15 return $xml;
16  
17 !
18 };
19  
20 3 1;
21  
22 =pod
23  
24 =head1 DESCRIPTION
25  
26 This class represents Nmap Summary/scan information.
27  
28 =head1 PROPERTIES
29  
30 =head2 finished() - Nmap::Scanner::RunStats::Finished
31  
32 =head2 hosts()
33  
34 =cut
« lib/Nmap/Scanner/Port.pm ↑ Summary lib/Nmap/Scanner/RunStats/Finished.pm »