LWP/Protocol/https/connect/Socket.pm untested

filter: Statementstmt 0.0% 0 / 27 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 38 CC 3 SCAR 17.5
CC
3
Cov
0%
new
12.0
BEGIN
2.0
BEGIN
2.0
CRAP 5.8
1 package LWP::Protocol::https::connect::Socket;
2  
3 use strict;
4 use warnings;
5  
6 our $VERSION = '6.09'; # VERSION
7  
8 require LWP::Protocol::https;
9 use IO::Socket::SSL;
10 use LWP::Protocol::connect::Socket::Base;
11 our @ISA = qw(LWP::Protocol::connect::Socket::Base IO::Socket::SSL LWP::Protocol::https::Socket);
12  
13 sub new {
14 my $class = shift;
15 my %args = @_;
16 my $conn = $class->_proxy_connect( \%args );
17  
18 unless ($class->start_SSL($conn, %args)) {
19 my $status = 'error while setting up ssl connection';
20 if( $@ ) {
21 $status .= " (".$@.")";
22 }
23 die($status);
24 }
25
26 $conn->http_configure( \%args );
27 return $conn;
28 }
29  
30 1;