blib/lib/Net/DNS/ToolKit/Utilities.pm

filter: Statementstmt 100% 37 / 37 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 90.0% 9 / 10 Podpod 100% 1 / 1 totaltotal 96.1% 50 / 52 CC 3 SCAR 4.1
CC
3
Cov
98%
id
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« blib/lib/Net/DNS/ToolKit/RR/TYPE.pm ↑ Summary Template/t/Template.t »
1 #!/usr/bin/perl
2 package Net::DNS::ToolKit::Utilities;
3  
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 #use diagnostics;
6  
7 1 ▶use vars qw($VERSION @ISA @EXPORT_OK $ID);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 $VERSION = do { my @r = (q$Revision: 0.05 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
10  
11 1 ▶use AutoLoader 'AUTOLOAD';
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 1 ▶use Config;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use IO::Socket;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use Net::DNS::Codes qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
16 T_ANY
17 T_A
18 T_TXT
19 T_MX
20 T_NS
21 T_SOA
22 T_PTR
23 T_CNAME
24 C_IN
25 NS_PACKETSZ
26 QUERY
27 NOERROR
28 BITS_QUERY
29 RD
30 1 );
31 1 ▶use Net::DNS::ToolKit qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
32 put16
33 get16
34 gethead
35 newhead
36 get_ns
37 1 );
38 1 ▶use Net::DNS::ToolKit::RR;
Subroutine BEGIN: called CC=1 SCAR=0.0
39
40 1 $ID = time % 65536; # unique for now
41  
42 1 require Exporter;
43 1 @ISA = qw(Exporter);
44  
45 1 @EXPORT_OK = qw(
46 id
47 question
48 revIP
49 query
50 dns_udpsend
51 dns_udpresp
52 dns_ans
53 dns_ns
54 dns_ptr
55 rlook_send
56 rlook_rcv
57 );
58  
59 # autoload declarations
60  
61 0 ▶sub DESTROY{};
Subroutine DESTROY: not called CC=1 SCAR=0.0
62  
63 1 1;
64 __END__
« blib/lib/Net/DNS/ToolKit/RR/TYPE.pm ↑ Summary Template/t/Template.t »