Routing/Driver/OSRM/Query.pm

filter: Statementstmt 62.5% 10 / 16 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 56.0% 14 / 25 CC 2 SCAR 9.8
CC
2
Cov
56%
query_string
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.7
« Routing/Driver/Gosmore/Query.pm ↑ Summary Routing.pm »
1 package Geo::Routing::Driver::OSRM::Query;
2 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 $Geo::Routing::Driver::OSRM::Query::AUTHORITY = 'cpan:AVAR';
4 }
5 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 $Geo::Routing::Driver::OSRM::Query::VERSION = '0.11';
7 }
8 1 ▶use Any::Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use warnings FATAL => "all";
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 with 'Geo::Routing::Role::Query';
12  
13 0 ▶sub query_string {
Subroutine query_string: not called CC=2 SCAR=17.9
Pod undocumented
14 0 my ($self, $method) = @_;
15 0 ▶ $method ||= "json";
Condition0%0/2
$method ||= "json"
l!l
00
MC/DC0%0/1
$method ||= "json"
$method
Truth table0%0/2
A
A= $method
Aresult
11
00
16  
17 0 my @atoms = qw(from_latitude from_longitude to_latitude to_longitude);
18  
19 0 my $query_string = "&output=$method&instructions=true&geometry=false&" . join '&', map { $self->$_ } @atoms;
20  
21 0 return $query_string;
22 }
23  
24 1 1;
« Routing/Driver/Gosmore/Query.pm ↑ Summary Routing.pm »