Routing/Driver/Gosmore/Route.pm

filter: Statementstmt 66.6% 8 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 70.5% 12 / 17 CC 1 SCAR 1.8
CC
1
Cov
67%
_build_travel_time
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Routing.pm ↑ Summary Routing/Driver/OSRM/Route.pm »
1 package Geo::Routing::Driver::Gosmore::Route;
2 2 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 $Geo::Routing::Driver::Gosmore::Route::AUTHORITY = 'cpan:AVAR';
4 }
5 2 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 $Geo::Routing::Driver::Gosmore::Route::VERSION = '0.11';
7 }
8 2 ▶use Any::Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use warnings FATAL => "all";
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 with 'Geo::Routing::Role::Route';
12  
13 0 ▶sub _build_travel_time {
Subroutine _build_travel_time: not called CC=1 SCAR=6.9
14 0 my ($self) = @_;
15  
16 0 my $first_point = $self->points->[0];
17 0 my $travel_time = $first_point->[4];
18  
19 0 return $travel_time;
20 }
21  
22 1;
« Routing.pm ↑ Summary Routing/Driver/OSRM/Route.pm »