ACME2/X/HTTP/Network.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::HTTP::Network;
2  
3 use strict;
4 use warnings;
5  
6 use parent qw( Net::ACME2::X::Generic );
7  
8 #named args required:
9 #
10 # error
11 # method
12 # url
13 #
14 sub new {
15 my ( $self, $args_hr ) = @_;
16  
17 return $self->SUPER::new(
18 "The system failed to send an HTTP “$args_hr->{'method'}” request to “$args_hr->{'url'}” because of an error: $args_hr->{'error'}",
19 $args_hr,
20 );
21 }
22  
23 1;