Identifier/Plugin/LeaseWeb.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 6 / 6 Podpod 50.0% 1 / 2 totaltotal 84.8% 28 / 33 CC 2 SCAR 2.7
CC
2
Cov
91%
new
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Identifier/Plugin/Koffivend.pm ↑ Summary Identifier/Plugin/NephoScale.pm »
1 #===============================================================================
2 # PODNAME: Net::IP::Identifier::Plugin::LeaseWeb
3 # ABSTRACT: identify LeaseWeb owned IP addresses
4 #
5 # AUTHOR: Reid Augustin (REID)
6 # EMAIL: reid@hellosix.com
7 # CREATED: Fri Mar 27 11:10:01 PDT 2015
8 #===============================================================================
9  
10 1 ▶use 5.008;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 package Net::IP::Identifier::Plugin::LeaseWeb;
15  
16 1 ▶use Role::Tiny::With;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 1 with qw( Net::IP::Identifier_Role );
18  
19 1 our $VERSION = '0.111'; # VERSION
20  
21 1 ▶sub new {
Subroutine new: called CC=2 SCAR=7.2
Pod documented
22 1 my ($class, %opts) = @_;
23  
24 1 my $self = {};
25 1 ▶ bless $self, (ref $class || $class);
Condition33%1/3
ref $class || $class
l!l&&r!l&&!r
010
MC/DC0%0/2
ref $class || $class
ref $class $class
Truth table33%1/3
A || B
A= ref $classB= $class
ABresult
1X1
011
000
26  
27 # List of known LeaseWeb IP blocks as of May 2015
28 1 $self->ips(
29 # 45 Network Blocks
30 '5.79.64.0/18',
31 '31.31.32.0/21',
32 '37.48.64.0/18',
33 '37.58.48.0/20',
34 '43.249.36.0/22',
35 '46.165.192.0/18',
36 '46.182.120.0/21',
37 '62.212.64.0/19',
38 # extending 77.221.144.0/24 to include 77.221.145.0/24
39 '77.221.144.0/23',
40 '78.159.96.0/19',
41 '82.192.64.0/19',
42 '83.149.64.0/18',
43 '84.16.224.0/19',
44 '85.17.0.0/16',
45 '87.255.32.0/19',
46 '89.149.192.0/18',
47 '91.109.16.0/20',
48 '94.75.192.0/18',
49 '95.168.160.0/19',
50 '95.211.0.0/16',
51 '108.59.0.0/20',
52 '109.120.180.0/22',
53 '162.210.192.0/21',
54 '178.162.128.0/17',
55 '185.17.144.0/22',
56 '185.17.184.0/22',
57 # extending 185.28.68.0/24 to include 185.28.69.0/24
58 # extending 185.28.68.0/23 to include 185.28.70.0/24
59 # extending 185.28.68.0-185.28.70.255 to include 185.28.71.0/24
60 '185.28.68.0/22',
61 '188.72.192.0/18',
62 '192.96.200.0/21',
63 '198.7.56.0/21',
64 '199.58.84.0/22',
65 '199.115.112.0/21',
66 '207.244.64.0/18',
67 '209.58.128.0/18',
68 '209.192.128.0/17',
69 '212.95.32.0/19',
70 '217.20.112.0/20',
71 '2001:df1:800::/47',
72 '2001:1af8::/32',
73 '2604:9a00::/32',
74 '2a00:c98::/32',
75 '2a00:ec8::/32',
76 '2a00:9d20::/32',
77 '2a03:2280::/32',
78 '2a04:1880:1111::/48',
79 );
80 1 return $self;
81 }
82  
83 1 ▶sub name {
Subroutine name: called CC=1 SCAR=0.0
Pod undocumented
84 1 return 'LEASEWEB';
85 }
86  
87 1 1;
88  
89 __END__
« Identifier/Plugin/Koffivend.pm ↑ Summary Identifier/Plugin/NephoScale.pm »