PRANG/Cookbook/Role/Location.pm

filter: Statementstmt 89.4% 17 / 19 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod n/a totaltotal 72.4% 21 / 29 CC 3 SCAR 12.5
CC
3
Cov
74%
__ANON__
6.0
__ANON__
6.0
BEGIN
1.0
CRAP 3.5
« PRANG/Cookbook/Role/Date.pm ↑ Summary PRANG/Coerce.pm »
1  
2 package PRANG::Cookbook::Role::Location;
3  
4 1 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use PRANG::Graph;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use PRANG::XMLSchema::Types;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 subtype 'PRANG::Cookbook::Latitude'
10 => as 'PRANG::XMLSchema::float',
11 => where {
12 0 ▶ $_ >= -90.0 and $_ <= 90.0;
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_ >= -90 and $_ <= 90 0 0 0
13 1 };
14  
15 subtype 'PRANG::Cookbook::Longitude'
16 => as 'PRANG::XMLSchema::float',
17 => where {
18 0 ▶ $_ >= -180.0 and $_ <= 180.0;
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_ >= -180 and $_ <= 180 0 0 0
19 1 };
20  
21 1 has_attr 'latitude' =>
22 is => 'rw',
23 isa => 'PRANG::Cookbook::Latitude',
24 xml_required => 1,
25 ;
26  
27 1 has_attr 'longitude' =>
28 is => 'rw',
29 isa => 'PRANG::Cookbook::Longitude',
30 xml_required => 1,
31 ;
32  
33 1 1;
« PRANG/Cookbook/Role/Date.pm ↑ Summary PRANG/Coerce.pm »