ACME/X/Protocol.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 94.1% 16 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« ACME/X/HTTP/Network.pm ↑ Summary ACME/X/UnexpectedResponse.pm »
1 package Net::ACME::X::Protocol;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use parent qw( Net::ACME::X::HashBase );
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 #named args required:
9 #
10 # url
11 # status
12 # reason
13 # type
14 # detail
15 #
16 #optional:
17 # headers
18 #
19 3 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
20 3 my ( $self, $args_hr ) = @_;
21  
22 3 return $self->SUPER::new(
23 "The ACME function “$args_hr->{'url'}” indicated an error: “$args_hr->{'detail'}” ($args_hr->{'status'}, “$args_hr->{'reason'}”, $args_hr->{'type'}).",
24 $args_hr,
25 );
26 }
27  
28 2 1;
« ACME/X/HTTP/Network.pm ↑ Summary ACME/X/UnexpectedResponse.pm »