Twilio/CredentialProvider/CredentialProvider.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 3 / 3 totaltotal 100% 24 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Twilio/AuthStrategy/NoAuthStrategy.pm ↑ Summary Twilio/CredentialProvider/NoAuthCredentialProvider.pm »
1 package Twilio::CredentialProvider::CredentialProvider;
2  
3 3 ▶use 5.016;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use Carp qw(croak);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 our $VERSION = '2.001';
9  
10 47 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
11 47 my ($class, $auth_type) = @_;
12 47 return bless { auth_type => $auth_type }, $class;
13 }
14  
15 3 ▶sub get_auth_type { return $_[0]{auth_type} }
Subroutine get_auth_type: called CC=1 SCAR=0.0
Pod documented
16  
17 1 ▶sub to_auth_strategy {
Subroutine to_auth_strategy: called CC=1 SCAR=0.0
Pod documented
18 1 my ($self) = @_;
19 1 croak ref($self) . ' must implement to_auth_strategy';
20 }
21  
22 3 1;
23  
24 __END__
« Twilio/AuthStrategy/NoAuthStrategy.pm ↑ Summary Twilio/CredentialProvider/NoAuthCredentialProvider.pm »