LWP/Protocol/http/connect.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 27 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
_extra_sock_opts
2.0
BEGIN
2.0
CRAP 2.0
1 package LWP::Protocol::http::connect;
2  
3 use strict;
4 use warnings;
5  
6 our $VERSION = '6.09'; # VERSION
7  
8 require LWP::Protocol::http;
9 our @ISA = qw(LWP::Protocol::http);
10 LWP::Protocol::implementor('http::connect' => 'LWP::Protocol::http::connect');
11  
12 sub new {
13 my $self = shift->SUPER::new(@_);
14 $self->{scheme} =~ s/::connect$//;
15 $self;
16 }
17  
18 sub _extra_sock_opts {
19 my $self = shift;
20 my($host, $port) = @_;
21 my @extra_sock_opts = $self->SUPER::_extra_sock_opts(@_);
22 return (@extra_sock_opts, @{$self->{proxy_connect_opts}});
23 }
24  
25 1;
26