File Coverage

blib/lib/URI/socks.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod 0 2 0.0
total 14 16 87.5


line stmt bran cond sub pod time code
1             ##############################
2             package URI::socks;
3             require URI::http;
4 1     1   77897 use URI::Escape;
  1         3  
  1         225  
5             #URI::implementor(socks => 'URI::http');
6             our @ISA = qw(URI::http);
7              
8             # [RT 48172] Adding user/pass functionality
9             sub user {
10 1     1 0 2150 my $self = shift;
11              
12 1         12 my $userinfo = $self->userinfo();
13 1         65 my($user) = split(/:/, $userinfo);
14 1         5 uri_unescape($user);
15             }
16              
17             sub pass {
18 1     1 0 453 my $self = shift;
19              
20 1         4 my $userinfo = $self->userinfo();
21 1         20 my(undef, $pass) = split(/:/, $userinfo);
22 1         3 uri_unescape($pass);
23             }
24              
25             1;
26              
27             __END__
28              
29             =head1 NAME
30              
31             URI::Socks - support for socks://host:port
32              
33             =head1 AUTHOR
34              
35             Sheridan C Rawlins E<lt>F<sheridan.rawlins@yahoo.com>E<gt>