line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Cikl::Models::Address::ipv4_cidr; |
2
|
2
|
|
|
2
|
|
6494
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
60
|
|
3
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
43
|
|
4
|
2
|
|
|
2
|
|
252
|
use Mouse; |
|
2
|
|
|
|
|
17008
|
|
|
2
|
|
|
|
|
12
|
|
5
|
2
|
|
|
2
|
|
11217
|
use Cikl::Models::AddressRole; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
57
|
|
6
|
2
|
|
|
2
|
|
985
|
use Cikl::DataTypes::Ipv4Cidr; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
72
|
|
7
|
2
|
|
|
2
|
|
14
|
use namespace::autoclean; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
15
|
|
8
|
|
|
|
|
|
|
with 'Cikl::Models::AddressRole'; |
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
0
|
4
|
sub type { 'ipv4_cidr' } |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
has '+value' => ( |
13
|
|
|
|
|
|
|
isa => 'Cikl::DataTypes::Ipv4Cidr' |
14
|
|
|
|
|
|
|
); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub normalize_value { |
17
|
2
|
|
|
2
|
0
|
4
|
my $class = shift; |
18
|
2
|
|
|
|
|
4
|
my $value = shift; |
19
|
2
|
50
|
33
|
|
|
17
|
return $value unless ($value && ref($value) eq ''); |
20
|
2
|
|
|
|
|
9
|
$value =~ s/^\s+//; |
21
|
2
|
|
|
|
|
8
|
$value =~ s/\s+$//; |
22
|
2
|
|
|
|
|
7
|
return $value; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|