line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Cikl::Models::Address::ipv4; |
2
|
2
|
|
|
2
|
|
12967
|
use strict; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
90
|
|
3
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
56
|
|
4
|
2
|
|
|
2
|
|
329
|
use Mouse; |
|
2
|
|
|
|
|
12152
|
|
|
2
|
|
|
|
|
13
|
|
5
|
2
|
|
|
2
|
|
1417
|
use Cikl::Models::AddressRole; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
59
|
|
6
|
2
|
|
|
2
|
|
1212
|
use Cikl::DataTypes::Ipv4; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
127
|
|
7
|
2
|
|
|
2
|
|
15
|
use namespace::autoclean; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
13
|
|
8
|
|
|
|
|
|
|
with 'Cikl::Models::AddressRole'; |
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
0
|
4
|
sub type { 'ipv4' } |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
has '+value' => ( |
13
|
|
|
|
|
|
|
isa => 'Cikl::DataTypes::Ipv4' |
14
|
|
|
|
|
|
|
); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub normalize_value { |
17
|
2
|
|
|
2
|
0
|
5
|
my $class = shift; |
18
|
2
|
|
|
|
|
2
|
my $value = shift; |
19
|
2
|
50
|
33
|
|
|
15
|
return $value unless ($value && ref($value) eq ''); |
20
|
2
|
|
|
|
|
7
|
$value =~ s/^\s+//; |
21
|
2
|
|
|
|
|
8
|
$value =~ s/\s+$//; |
22
|
2
|
|
|
|
|
7
|
return $value; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|