File Coverage

blib/lib/Data/Semantic/Net/IPAddress/TestData/IPv4.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 18 18 100.0


line stmt bran cond sub pod time code
1 1     1   12933 use 5.008;
  1         4  
  1         46  
2 1     1   8 use strict;
  1         2  
  1         38  
3 1     1   6 use warnings;
  1         1  
  1         65  
4              
5             package Data::Semantic::Net::IPAddress::TestData::IPv4;
6             BEGIN {
7 1     1   126 $Data::Semantic::Net::IPAddress::TestData::IPv4::VERSION = '1.101760';
8             }
9             # ABSTRACT: Test data class for the IPv4 address semantic data class
10 1         108 use constant TESTDATA => (
11             { args => { forbid_internal => 0 },
12             valid => [
13             qw(
14             127.0.0.1
15             131.130.249.31
16             10.0.1.3
17             192.168.1.3
18             198.51.100.0
19             198.51.100.23
20             198.51.100.255
21             203.0.113.0
22             203.0.113.23
23             203.0.113.255
24             192.0.2.0
25             192.0.2.23
26             192.0.2.255
27             )
28             ],
29             invalid => [
30             qw(
31             127.0
32             )
33             ],
34             normalize => {
35             '213.160.065.064' => '213.160.65.64',
36             '213.065.064' => undef,
37             },
38             },
39             { args => { forbid_internal => 1 },
40             valid => [
41             qw(
42             131.130.249.31
43             )
44             ],
45             invalid => [
46             qw(
47             127.0
48             127.0.0.1
49             10.0.1.3
50             192.168.1.3
51             198.51.100.0
52             198.51.100.23
53             198.51.100.255
54             203.0.113.0
55             203.0.113.23
56             203.0.113.255
57             192.0.2.0
58             192.0.2.23
59             192.0.2.255
60             )
61             ],
62             },
63 1     1   5 );
  1         3  
64             1;
65              
66              
67             __END__