Toolkit/Types/Internal.pm

filter: Statementstmt 86.4% 32 / 37 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 10 / 15 Podpod n/a totaltotal 77.7% 42 / 54 CC 2 SCAR 5.4
CC
2
Cov
82%
__ANON__
6.0
__ANON__
2.0
__ANON__
1.1
CRAP 1.7
« Toolkit/Role/UsernameChecker.pm ↑ Summary Toolkit/Result.pm »
1 package Antispam::Toolkit::Types::Internal;
2 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 $Antispam::Toolkit::Types::Internal::VERSION = '0.08';
4 }
5  
6 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use Archive::Zip qw( AZ_OK );
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use File::Temp qw( tempdir );
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use Path::Class qw( dir file );
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 1 ▶use MooseX::Types -declare => [
Subroutine BEGIN: called CC=1 SCAR=0.0
14 qw(
15 DataFile
16 Details
17 NonNegativeNum
18 )
19 1 ];
20  
21 1 ▶use MooseX::Types::Common::String qw( NonEmptyStr );
Subroutine BEGIN: called CC=1 SCAR=0.0
22 1 ▶use MooseX::Types::Moose qw( ArrayRef Num );
Subroutine BEGIN: called CC=1 SCAR=0.0
23 1 ▶use MooseX::Types::Path::Class qw( File );
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 subtype DataFile,
26 as File,
27 0 ▶ where { -f $_ && -s _ },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
-f $_ and -s _ 0 0 0
28 0 ▶ message { "The filename you provided ($_) is either empty or does not exist" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
29  
30 1 subtype Details,
31 as ArrayRef[NonEmptyStr];
32  
33 coerce Details,
34 from NonEmptyStr,
35 0 ▶ via { [$_] };
Subroutine __ANON__: not called CC=1 SCAR=1.2
36  
37 subtype NonNegativeNum,
38 as Num,
39 0 ▶ where { $_ >= 0 },
Subroutine __ANON__: not called CC=1 SCAR=6.9
40 0 ▶ message { "The number you provided ($_) was not greater than or equal to zero" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
« Toolkit/Role/UsernameChecker.pm ↑ Summary Toolkit/Result.pm »