Routing/Role/Driver.pm

filter: Statementstmt 80.0% 16 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod n/a totaltotal 81.4% 22 / 27 CC 1 SCAR 1.3
CC
1
Cov
80%
_build__mech
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Routing/Driver/OSRM/Route.pm ↑ Summary Routing/Role/Route.pm »
1 package Geo::Routing::Role::Driver;
2 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 $Geo::Routing::Role::Driver::AUTHORITY = 'cpan:AVAR';
4 }
5 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 $Geo::Routing::Role::Driver::VERSION = '0.11';
7 }
8 1 ▶use Any::Moose '::Role';
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use warnings FATAL => "all";
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use namespace::clean -except => "meta";
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 ▶use WWW::Mechanize;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 1 has _mech => (
15 is => 'ro',
16 isa => 'WWW::Mechanize',
17 documentation => "Our instance of WWW::Mechanize",
18 lazy_build => 1,
19 );
20  
21 0 ▶sub _build__mech {
Subroutine _build__mech: not called CC=1 SCAR=6.9
22 0 my ($self) = @_;
23  
24 0 my $mech = WWW::Mechanize->new(
25 user_agent => __PACKAGE__,
26 proxy => '',
27 );
28  
29 0 $mech->default_header(
30 'Accept-Encoding' => "gzip,deflate",
31 'Keep-Alive' => "300",
32 'Connection' => "keep-alive",
33 );
34  
35 0 return $mech;
36 }
37  
38 1 1;
« Routing/Driver/OSRM/Route.pm ↑ Summary Routing/Role/Route.pm »