ACME/X/HTTP/Network.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/Challenge/Pending.pm ↑ Summary ACME/X/Protocol.pm »
1 package Net::ACME::X::HTTP::Network;
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 # error
11 # method
12 # url
13 #
14 sub new {
15 2 ▶ my ( $self, $args_hr ) = @_;
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
16  
17 2 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 2 1;
« ACME/Challenge/Pending.pm ↑ Summary ACME/X/Protocol.pm »