line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Types::OTRS; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: OTRS related types |
4
|
|
|
|
|
|
|
|
5
|
8
|
|
|
8
|
|
4380
|
use v5.10; |
|
8
|
|
|
|
|
29
|
|
6
|
|
|
|
|
|
|
|
7
|
8
|
|
|
8
|
|
53
|
use strict; |
|
8
|
|
|
|
|
17
|
|
|
8
|
|
|
|
|
156
|
|
8
|
8
|
|
|
8
|
|
37
|
use warnings; |
|
8
|
|
|
|
|
15
|
|
|
8
|
|
|
|
|
306
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
use Type::Library |
11
|
8
|
|
|
|
|
64
|
-base, |
12
|
8
|
|
|
8
|
|
1387
|
-declare => qw(OTRSVersion OTRSVersionWildcard); |
|
8
|
|
|
|
|
52996
|
|
13
|
|
|
|
|
|
|
|
14
|
8
|
|
|
8
|
|
10757
|
use Type::Utils -all; |
|
8
|
|
|
|
|
9627
|
|
|
8
|
|
|
|
|
68
|
|
15
|
8
|
|
|
8
|
|
30991
|
use Types::Standard -types; |
|
8
|
|
|
|
|
361140
|
|
|
8
|
|
|
|
|
135
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our $VERSION = '0.02'; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
declare OTRSVersion => |
20
|
|
|
|
|
|
|
as Str, |
21
|
|
|
|
|
|
|
where { |
22
|
|
|
|
|
|
|
$_ =~ m{ \A (?: [0-9]+ \. ){2} (?: [0-9]+ ) \z }xms |
23
|
|
|
|
|
|
|
}; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
declare OTRSVersionWildcard => |
26
|
|
|
|
|
|
|
as Str, |
27
|
|
|
|
|
|
|
where { |
28
|
|
|
|
|
|
|
$_ =~ m{ |
29
|
|
|
|
|
|
|
\A (?: |
30
|
|
|
|
|
|
|
(?: [0-9]+ \. ){2} (?: [0-9]+ ) | |
31
|
|
|
|
|
|
|
(?: [0-9]+ \. ){1,2} x |
32
|
|
|
|
|
|
|
) \z |
33
|
|
|
|
|
|
|
}xms |
34
|
|
|
|
|
|
|
}; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |