Paginator/Types.pm

filter: Statementstmt 90.9% 10 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 86.6% 13 / 15 CC 1 SCAR 0.3
CC
1
Cov
91%
__ANON__
1.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Paginator.pm ↑ Summary
1 package Data::Paginator::Types;
2 6 $Data::Paginator::Types::VERSION = '0.08';
3 6 ▶use MooseX::Types -declare => [qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
4 PositiveInt
5 6 )];
6  
7 6 ▶use MooseX::Types::Moose qw(Int);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 # ABSTRACT: Defines types used by Data::Paginator
10  
11 subtype PositiveInt,
12 as Int,
13 139 ▶ where { $_ >= 0 },
Subroutine __ANON__: called CC=1 SCAR=0.0
14 0 ▶ message { 'Number is not equal to or larger than 0' };
Subroutine __ANON__: not called CC=1 SCAR=1.2
15  
16 6 1;
17  
18 __END__
« Paginator.pm ↑ Summary