Twilio/InstanceResource.pm

filter: Statementstmt 100% 13 / 13 Branchbran 100% 2 / 2 Conditioncond 100% 2 / 2 MC/DCmcdc 100% 1 / 1 Subroutinesub 100% 4 / 4 Podpod 100% 2 / 2 totaltotal 100% 24 / 24 CC 3 SCAR 6.9
CC
3
Cov
100%
new
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« Twilio/Jwt/Grants/Grant.pm ↑ Summary Twilio/Rest/Iam/V1/GetApiKeys.pm »
1 package Twilio::InstanceResource;
2  
3 18 ▶use 5.016;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 18 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 18 our $VERSION = '2.001';
7  
8 1594 ▶sub new {
Subroutine new: called CC=3 SCAR=11.0
Pod documented
9 1594 my ($class, $version, $payload, $solution) = @_;
10 return bless {
11 version => $version,
12 1594 ▶ properties => ref $payload eq 'HASH' ? { %{$payload} } : {},
Branch: 1 branch
BranchTrueFalseTotal
ref $payload eq 'HASH' ? : 1591 3 1594
Condition100%2/2
$solution // {}
l!l
501544
MC/DC100%1/1
$solution // {}
$solution
Truth table100%2/2
A
A= $solution
Aresult
11
00
13 solution => $solution // {},
14 }, $class;
15 }
16  
17 10 ▶sub to_hash {
Subroutine to_hash: called CC=1 SCAR=0.0
Pod documented
18 10 my ($self) = @_;
19 10 return { %{ $self->{properties} } };
20 }
21  
22 18 1;
23  
24 __END__
« Twilio/Jwt/Grants/Grant.pm ↑ Summary Twilio/Rest/Iam/V1/GetApiKeys.pm »