Twilio/Jwt/Grants/PlaybackGrant.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond 100% 2 / 2 MC/DCmcdc 100% 1 / 1 Subroutinesub 100% 7 / 7 Podpod 100% 4 / 4 totaltotal 100% 31 / 31 CC 2 SCAR 2.2
CC
2
Cov
100%
get_payload
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Twilio/Rest/Lookups/V1/PhoneNumber.pm ↑ Summary Twilio/Rest/Api/V2010/Account/Usage.pm »
1 package Twilio::Jwt::Grants::PlaybackGrant;
2  
3 2 ▶use 5.016;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use parent 'Twilio::Jwt::Grants::Grant';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 our $VERSION = '2.001';
9  
10 2 ▶sub get_grant_key { return 'player' }
Subroutine get_grant_key: called CC=1 SCAR=0.0
Pod documented
11  
12 1 ▶sub get_grant { return $_[0]{grant} }
Subroutine get_grant: called CC=1 SCAR=0.0
Pod documented
13  
14 2 ▶sub set_grant {
Subroutine set_grant: called CC=1 SCAR=0.0
Pod documented
15 2 my ($self, $grant) = @_;
16 2 $self->{grant} = $grant;
17 2 return $self;
18 }
19  
20 3 ▶sub get_payload {
Subroutine get_payload: called CC=2 SCAR=6.9
Pod documented
21 3 my ($self) = @_;
22 3 ▶ return $self->{grant} // {};
Condition100%2/2
$self->{"grant"} // {}
l!l
21
MC/DC100%1/1
$self->{"grant"} // {}
$self->{"grant"}
Truth table100%2/2
A
A= $self->{"grant"}
Aresult
11
00
23 }
24  
25 2 1;
26  
27 __END__
« Twilio/Rest/Lookups/V1/PhoneNumber.pm ↑ Summary Twilio/Rest/Api/V2010/Account/Usage.pm »