SDK/Error/NotFound.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond 100% 2 / 2 MC/DCmcdc 100% 1 / 1 Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 20 / 20 CC 2 SCAR 3.4
CC
2
Cov
100%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« SDK/Error/Validation.pm ↑ Summary SDK/Error/RateLimit.pm »
1 package Apertur::SDK::Error::NotFound;
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 2 ▶sub new {
Subroutine new: called CC=2 SCAR=6.9
Pod documented
8 2 my ($class, %args) = @_;
9 return $class->SUPER::new(
10 status_code => 404,
11 code => 'NOT_FOUND',
12 2 ▶ message => $args{message} // 'Not found',
Condition100%2/2
$args{"message"} // "Not found"
l!l
11
MC/DC100%1/1
$args{"message"} // "Not found"
$args{"message"}
Truth table100%2/2
A
A= $args{"message"}
Aresult
11
00
13 );
14 }
15  
16 1 1;
17  
18 __END__
« SDK/Error/Validation.pm ↑ Summary SDK/Error/RateLimit.pm »