JSON/Point.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 23 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« JSON/MultiPolygon.pm ↑ Summary JSON/Polygon.pm »
1 package Geo::JSON::Point;
2  
3 5 our $VERSION = '0.007';
4  
5 # ABSTRACT: object representing a geojson Point
6  
7 5 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 5 extends 'Geo::JSON::Base';
9 5 with 'Geo::JSON::Role::Geometry';
10  
11 5 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 5 ▶use Geo::JSON::Types -types;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 5 has '+coordinates' => ( isa => Position );
16  
17 4 ▶before compute_bbox => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
18 4 croak "Can't compute_bbox with a single position";
19 5 };
20  
21 1 ▶sub all_positions { [ shift->coordinates ] }
Subroutine all_positions: called CC=1 SCAR=0.0
Pod documented
22  
23 5 1;
24  
25 __END__
« JSON/MultiPolygon.pm ↑ Summary JSON/Polygon.pm »