JSON/FeatureCollection.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 100% 31 / 31 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« JSON/Feature.pm ↑ Summary JSON/LineString.pm »
1 package Geo::JSON::FeatureCollection;
2  
3 2 our $VERSION = '0.007';
4  
5 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 extends 'Geo::JSON::Base';
7  
8 2 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use Types::Standard qw/ ArrayRef HashRef /;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 ▶use Geo::JSON::Types -types;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 2 ▶use Geo::JSON::Utils;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 2 has features => (
15 is => 'ro',
16 isa => Features,
17 coerce => Features->coercion,
18 required => 1
19 );
20  
21 1 ▶sub all_positions {
Subroutine all_positions: called CC=1 SCAR=0.0
Pod documented
22 1 my $self = shift;
23  
24 1 return [ map { @{ $_->all_positions } } @{ $self->features } ];
25 }
26  
27 2 1;
28  
29 __END__
« JSON/Feature.pm ↑ Summary JSON/LineString.pm »