ACME2/X/UnexpectedResponse.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 16 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Net::ACME2::X::UnexpectedResponse;
2  
3 use strict;
4 use warnings;
5  
6 use parent qw( Net::ACME2::X::Generic );
7  
8 #named args required:
9 #
10 # uri
11 # status
12 # reason
13 #
14 #optional:
15 # headers
16 #
17 sub new {
18 my ( $self, $args_hr ) = @_;
19  
20 return $self->SUPER::new(
21 "The [asis,ACME] function “$args_hr->{'uri'}” returned an unexpected status: “$args_hr->{'status'}” ($args_hr->{'reason'}).",
22 $args_hr,
23 );
24 }
25  
26 1;