API/Error.pm

filter: Statementstmt 100% 15 / 15 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 91.6% 22 / 24 SCAR 11.0
CC
3
Cov
89%
__ANON__
2.1
__ANON__
2.1
BEGIN
1.0
CRAP 3.0
« API/Request/Chat.pm ↑ Summary API/Response.pm »
1 package OpenAI::API::Error;
2  
3 18 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 18 ▶use strictures 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 18 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 18 extends 'Throwable::Error';
8  
9 has request => (
10 is => 'ro',
11 4 ▶ isa => sub { ref $_[0] eq 'HTTP::Request' or die "expected HTTP::Request object" },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
ref $_[0] eq "HTTP::Request" or die "expected HTTP::Request object" 0 4 4
12 18 );
13  
14 has response => (
15 is => 'ro',
16 4 ▶ isa => sub { ref $_[0] eq 'HTTP::Response' or die "expected HTTP::Response object" },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
ref $_[0] eq "HTTP::Response" or die "expected HTTP::Response object" 0 4 4
17 18 );
18  
19 18 1;
20  
21 __END__
« API/Request/Chat.pm ↑ Summary API/Response.pm »