Express/Provider.pm

filter: Statementstmt 91.6% 22 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod n/a totaltotal 93.7% 30 / 32 CC 1 SCAR 0.4
CC
1
Cov
92%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Express/Provider/Common.pm ↑ Summary
1 package WebService::Heartrails::Express::Provider;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use Mouse;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use Furl;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use WebService::Heartrails::Express::Provider::Line;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use WebService::Heartrails::Express::Provider::Station;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 0 ▶use WebService::Heartrails::Express::Provider::Near;
Subroutine BEGIN: called CC=1 SCAR=2.6
10  
11 has furl => (
12 is => 'ro',
13 isa => 'Furl',
14 );
15  
16 sub dispatch{
17 my($self,$api_name,$arg) = @_;
18 my $class = __PACKAGE__.'::'.ucfirst($api_name);
19 $class->call($self,$arg);
20 }
21  
22 no Mouse;
23 __PACKAGE__->meta->make_immutable;
24  
25  
26 1;
« Express/Provider/Common.pm ↑ Summary