Identifier/Plugin/Fedex.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/FDCServers.pm ↑ Summary Identifier/Plugin/HostingSlnInt.pm »
1 #===============================================================================
2 # PODNAME: Net::IP::Identifier::Plugin::Fedex
3 # ABSTRACT: identify Fedex (AS7726 AS27619 AS25676) owned IP addresses
4  
5 #
6 # AUTHOR: Reid Augustin (REID)
7 # EMAIL: reid@hellosix.com
8 # CREATED: Sun Oct 12 19:32:46 PDT 2014
9 #===============================================================================
10  
11 1 ▶use 5.008;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 package Net::IP::Identifier::Plugin::Fedex;
16  
17 1 ▶use Role::Tiny::With;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 with qw( Net::IP::Identifier_Role );
19  
20 1 our $VERSION = '0.111'; # VERSION
21  
22 1 ▶sub new {
Subroutine new: called CC=2 SCAR=7.2
Pod documented
23 1 my ($class, %opts) = @_;
24  
25 1 my $self = {};
26 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
27  
28 # List of known Fedex (AS7726 AS27619 AS25676) IP blocks as of May 2015
29 1 $self->ips(
30 # 12 Network Blocks
31 '12.168.77.0/24',
32 '65.162.10.0/24',
33 '146.18.0.0/16',
34 '155.161.0.0/16',
35 '165.150.0.0/16',
36 '170.5.0.0/16',
37 '170.170.0.0/16',
38 '192.67.56.0/24',
39 # extending 198.140.0.0/22 to include 198.140.4.0/23
40 '198.140.0.0-198.140.5.255',
41 # extending 199.81.0.0/16 to include 199.82.0.0/16
42 '199.81.0.0-199.82.255.255',
43 '203.208.20.0/24',
44 '204.135.0.0/16',
45 );
46 1 return $self;
47 }
48  
49 1 ▶sub name {
Subroutine name: called CC=1 SCAR=0.0
Pod undocumented
50 1 return 'Fedex';
51 }
52  
53 1 1;
54  
55 __END__
« Identifier/Plugin/FDCServers.pm ↑ Summary Identifier/Plugin/HostingSlnInt.pm »