line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Antispam::Toolkit::Types::Internal; |
2
|
|
|
|
|
|
|
BEGIN { |
3
|
1
|
|
|
1
|
|
621
|
$Antispam::Toolkit::Types::Internal::VERSION = '0.08'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
7
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
27
|
|
7
|
1
|
|
|
1
|
|
97
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
1047
|
use Archive::Zip qw( AZ_OK ); |
|
1
|
|
|
|
|
90383
|
|
|
1
|
|
|
|
|
60
|
|
10
|
1
|
|
|
1
|
|
10
|
use File::Temp qw( tempdir ); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
80
|
|
11
|
1
|
|
|
1
|
|
931
|
use Path::Class qw( dir file ); |
|
1
|
|
|
|
|
23959
|
|
|
1
|
|
|
|
|
89
|
|
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
|
|
9
|
use MooseX::Types -declare => [ |
14
|
|
|
|
|
|
|
qw( |
15
|
|
|
|
|
|
|
DataFile |
16
|
|
|
|
|
|
|
Details |
17
|
|
|
|
|
|
|
NonNegativeNum |
18
|
|
|
|
|
|
|
) |
19
|
1
|
|
|
1
|
|
1166
|
]; |
|
1
|
|
|
|
|
731825
|
|
20
|
|
|
|
|
|
|
|
21
|
1
|
|
|
1
|
|
6695
|
use MooseX::Types::Common::String qw( NonEmptyStr ); |
|
1
|
|
|
|
|
107807
|
|
|
1
|
|
|
|
|
12
|
|
22
|
1
|
|
|
1
|
|
2828
|
use MooseX::Types::Moose qw( ArrayRef Num ); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
9
|
|
23
|
1
|
|
|
1
|
|
6446
|
use MooseX::Types::Path::Class qw( File ); |
|
1
|
|
|
|
|
30116
|
|
|
1
|
|
|
|
|
11
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
subtype DataFile, |
26
|
|
|
|
|
|
|
as File, |
27
|
|
|
|
|
|
|
where { -f $_ && -s _ }, |
28
|
|
|
|
|
|
|
message { "The filename you provided ($_) is either empty or does not exist" }; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
subtype Details, |
31
|
|
|
|
|
|
|
as ArrayRef[NonEmptyStr]; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
coerce Details, |
34
|
|
|
|
|
|
|
from NonEmptyStr, |
35
|
|
|
|
|
|
|
via { [$_] }; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
subtype NonNegativeNum, |
38
|
|
|
|
|
|
|
as Num, |
39
|
|
|
|
|
|
|
where { $_ >= 0 }, |
40
|
|
|
|
|
|
|
message { "The number you provided ($_) was not greater than or equal to zero" }; |