SDK/Error/Authentication.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 90.0% 18 / 20 CC 2 SCAR 3.5
CC
2
Cov
93%
new
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« SDK/Resource/Destinations.pm ↑ Summary SDK/Error/Validation.pm »
1 package Apertur::SDK::Error::Authentication;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use parent 'Apertur::SDK::Error';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶sub new {
Subroutine new: called CC=2 SCAR=7.2
Pod documented
8 1 my ($class, %args) = @_;
9 return $class->SUPER::new(
10 status_code => 401,
11 code => 'AUTHENTICATION_FAILED',
12 1 ▶ message => $args{message} // 'Authentication failed',
Condition50%1/2
$args{"message"} // "Authentication failed"
l!l
10
MC/DC0%0/1
$args{"message"} // "Authentication failed"
$args{"message"}
Truth table50%1/2
A
A= $args{"message"}
Aresult
11
00
13 );
14 }
15  
16 1 1;
17  
18 __END__
« SDK/Resource/Destinations.pm ↑ Summary SDK/Error/Validation.pm »