JSON/CRS.pm

filter: Statementstmt 100% 15 / 15 Branchbran 50.0% 1 / 2 Conditioncond 50.0% 3 / 6 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 76.6% 23 / 30 CC 4 SCAR 12.6
CC
4
Cov
83%
__ANON__
5.4
BEGIN
1.0
BEGIN
1.0
CRAP 3.5
« JSON/Utils.pm ↑ Summary JSON/GeometryCollection.pm »
1 package Geo::JSON::CRS;
2  
3 3 our $VERSION = '0.007';
4  
5 3 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 with 'Geo::JSON::Role::ToJson';
7  
8 3 ▶use Types::Standard qw/ HashRef /;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 3 ▶use Geo::JSON;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 has type => (
13 is => 'ro',
14 required => 1,
15 17 ▶ isa => sub {
Subroutine __ANON__: called CC=4 SCAR=16.9
16 17 ▶ die "CRS type must be either 'name' or 'link'"
Branch: 1 branch
BranchTrueFalseTotal
unless $_[0] and $_[0] eq "name" || $_[0] eq "link" 0 17 17
Condition50%3/6
$_[0] and $_[0] eq "name" || $_[0] eq "link"
!ll&&!rl&&r
0017
$_[0] eq "name" or $_[0] eq "link"
l!l&&r!l&&!r
1430
MC/DC0%0/3
$_[0] and $_[0] eq "name" || $_[0] eq "link"
$_[0] $_[0] eq "name" $_[0] eq "link"
Truth table50%2/4
A and B or C
A= $_[0]B= $_[0] eq "name"C= $_[0] eq "link"
ABCresult
0XX0
1000
11X1
1011
17 unless $_[0] && ( $_[0] eq 'name' || $_[0] eq 'link' );
18 },
19 3 );
20  
21 3 has properties => ( is => 'ro', isa => HashRef, required => 1 );
22  
23 3 1;
24  
25 __END__
« JSON/Utils.pm ↑ Summary JSON/GeometryCollection.pm »