line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Cikl::Models::Address::fqdn; |
2
|
2
|
|
|
2
|
|
8620
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
171
|
|
3
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
64
|
|
4
|
2
|
|
|
2
|
|
769
|
use Mouse; |
|
2
|
|
|
|
|
19016
|
|
|
2
|
|
|
|
|
13
|
|
5
|
2
|
|
|
2
|
|
2196
|
use Cikl::Models::AddressRole; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
186
|
|
6
|
2
|
|
|
2
|
|
1310
|
use Cikl::DataTypes::Fqdn; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
78
|
|
7
|
2
|
|
|
2
|
|
17
|
use namespace::autoclean; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
13
|
|
8
|
|
|
|
|
|
|
with 'Cikl::Models::AddressRole'; |
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
0
|
5
|
sub type { 'fqdn' } |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
has '+value' => ( |
13
|
|
|
|
|
|
|
isa => 'Cikl::DataTypes::Fqdn' |
14
|
|
|
|
|
|
|
); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub normalize_value { |
17
|
3
|
|
|
3
|
0
|
5
|
my $class = shift; |
18
|
3
|
|
|
|
|
5
|
my $value = shift; |
19
|
3
|
50
|
33
|
|
|
25
|
return $value unless ($value && ref($value) eq ''); |
20
|
3
|
|
|
|
|
12
|
$value =~ s/^\s+//; |
21
|
3
|
|
|
|
|
10
|
$value =~ s/\s+$//; |
22
|
3
|
|
|
|
|
13
|
return lc($value); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
26
|
|
|
|
|
|
|
1; |