lib/Nmap/Scanner/Task.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/Service.pm ↑ Summary lib/Nmap/Scanner/TaskProgress.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::Task' => {
6 qw(name $
7 begin_time $
8 end_time $),
9 '&as_xml' => q!
10
11 return qq(<taskbegin task="$name" time="$begin_time"/>\n) .
12 qq(<taskend task="$name" time="$end_time"/>\n);
13  
14 !
15 };
16  
17 =pod
18  
19 =head1 DESCRIPTION
20  
21 This class represents Nmap live task status messages (taskend and
22 taskbegin elements in XML).
23  
24 =head1 PROPERTIES
25  
26 =head2 name()
27  
28 =head2 begin_time()
29  
30 =head2 end_time()
31  
32 =cut
33  
34 3 1;
« lib/Nmap/Scanner/Service.pm ↑ Summary lib/Nmap/Scanner/TaskProgress.pm »