Megaport/Session.pm

filter: Statementstmt 85.7% 24 / 28 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 8 / 12 Podpod 0.0% 0 / 1 totaltotal 74.4% 32 / 43 CC 2 SCAR 7.0
CC
2
Cov
80%
BUILD
6.0
__ANON__
2.0
__ANON__
2.0
CRAP 2.0
« Megaport.pm ↑ Summary Megaport/Locations.pm »
1 package Megaport::Session;
2  
3 3 ▶use 5.10.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 ▶use Carp qw(croak);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 ▶use Megaport::Ports;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 3 ▶use Megaport::Services;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 ▶use Megaport::Locations;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 3 ▶use Class::Tiny qw(client errstr), {
Subroutine BEGIN: called CC=1 SCAR=1.2
13 0 ▶ ports => sub { Megaport::Ports->new(client => shift->client) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
14 0 ▶ services => sub { Megaport::Services->new(client => shift->client) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
15 0 ▶ locations => sub { Megaport::Locations->new(client => shift->client) }
Subroutine __ANON__: not called CC=1 SCAR=6.9
16 3 };
17  
18 0 ▶sub BUILD {
Subroutine BUILD: not called CC=2 SCAR=17.9
Pod undocumented
19 0 ▶ croak __PACKAGE__ . '->new: client not passed to constructor' unless shift->client;
Branch: 1 branch
BranchTrueFalseTotal
unless (shift())->client 0 0 0
20 }
21  
22 3 1;
23 __END__
« Megaport.pm ↑ Summary Megaport/Locations.pm »