Twilio/AuthStrategy/AuthStrategy.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 4 / 4 totaltotal 100% 28 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Twilio/Rest/Numbers/V3/HostedNumberOrder.pm ↑ Summary Twilio/AuthStrategy/NoAuthStrategy.pm »
1 package Twilio::AuthStrategy::AuthStrategy;
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 42 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
11 42 my ($class, $auth_type) = @_;
12 42 return bless { auth_type => $auth_type }, $class;
13 }
14  
15 2 ▶sub get_auth_type { return $_[0]{auth_type} }
Subroutine get_auth_type: called CC=1 SCAR=0.0
Pod documented
16  
17 1 ▶sub get_auth_string {
Subroutine get_auth_string: called CC=1 SCAR=0.0
Pod documented
18 1 my ($self) = @_;
19 1 croak ref($self) . ' must implement get_auth_string';
20 }
21  
22 1 ▶sub requires_authentication {
Subroutine requires_authentication: called CC=1 SCAR=0.0
Pod documented
23 1 my ($self) = @_;
24 1 croak ref($self) . ' must implement requires_authentication';
25 }
26  
27 3 1;
28  
29 __END__
« Twilio/Rest/Numbers/V3/HostedNumberOrder.pm ↑ Summary Twilio/AuthStrategy/NoAuthStrategy.pm »