Identifier/Plugin/1and1.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 32 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
name
2.0
BEGIN
2.0
CRAP 2.0
1 #===============================================================================
2 # PODNAME: Net::IP::Identifier::Plugin::1and1
3 # ABSTRACT: identify 1and1 / FastHosts (AS8560, AS15418) owned IP addresses
4 #
5 # AUTHOR: Reid Augustin (REID)
6 # EMAIL: reid@hellosix.com
7 # CREATED: Sun Oct 12 19:32:46 PDT 2014
8 #===============================================================================
9  
10 use 5.008;
11 use strict;
12 use warnings;
13  
14 package Net::IP::Identifier::Plugin::1and1;
15  
16 use Role::Tiny::With;
17 with qw( Net::IP::Identifier_Role );
18  
19 our $VERSION = '0.106'; # VERSION
20  
21 sub new {
22 my ($class, %opts) = @_;
23  
24 my $self = {};
25 bless $self, (ref $class || $class);
26  
27 # List of known 1and1 (AS8560, AS15418) IP blocks as of May 2015
28 $self->ips(
29 # 30 Network Blocks
30 '50.21.176.0/20',
31 '66.175.232.0/21',
32 '70.35.192.0/20',
33 '74.208.0.0/16',
34 '77.68.0.0/17',
35 '79.99.40.0/21',
36 '82.165.0.0/16',
37 '87.106.0.0/16',
38 '88.208.192.0/18',
39 '93.90.192.0/20',
40 '104.192.4.0/22',
41 '104.219.40.0/22',
42 '104.254.244.0/22',
43 '108.175.0.0/20',
44 '109.228.0.0/18',
45 '162.222.200.0/21',
46 '162.252.156.0/22',
47 '162.255.84.0/22',
48 '195.20.224.0/19',
49 '198.71.48.0/20',
50 '198.251.64.0/20',
51 '212.227.0.0/16',
52 '213.165.64.0/19',
53 '213.171.192.0/19',
54 '216.250.112.0/20',
55 '217.72.192.0/20',
56 '217.160.0.0/16',
57 '217.174.240.0/20',
58 '2001:8d8::/32',
59 '2607:f1c0::/32',
60 );
61 return $self;
62 }
63  
64 sub name {
65 return '1and1';
66 }
67  
68 1;
69  
70 __END__