Wrapped.pm

filter: Statementstmt 82.6% 19 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 6 / 9 Podpod 0.0% 0 / 4 totaltotal 69.4% 25 / 36 CC 1 SCAR 2.0
CC
1
Cov
83%
can
2.0
DOES
2.0
BEGIN
1.0
CRAP 1.2
« Wrapper.pm ↑ Summary
1 package IO::Socket::Socks::Wrapped;
2  
3 7 ▶use IO::Socket;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 7 ▶use IO::Socket::Socks::Wrapper;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 7 our $VERSION = '0.11';
7 7 our $AUTOLOAD;
8  
9 sub new {
10 15 ▶ my ($class, $obj, $cfg) = @_;
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
11 15 bless {orig => $obj, cfg => $cfg}, $class;
12 }
13  
14 sub AUTOLOAD {
15 36 ▶ my $self = shift;
Subroutine AUTOLOAD: called CC=1 SCAR=0.0
16
17 36 IO::Socket::Socks::Wrapper::_io_socket_connect_ref();
18
19 local *IO::Socket::connect = sub {
20 36 ▶ return IO::Socket::Socks::Wrapper::_connect(@_, $self->{cfg}, 1);
Subroutine __ANON__: called CC=1 SCAR=0.0
21 36 };
22
23 36 $AUTOLOAD =~ s/^.+:://;
24 36 $self->{orig}->$AUTOLOAD(@_);
25 }
26  
27 sub isa {
28 14 ▶ my $self = shift;
Subroutine isa: called CC=1 SCAR=0.0
Pod undocumented
29 14 $self->{orig}->isa(@_);
30 }
31  
32 sub can {
33 0 ▶ my $self = shift;
Subroutine can: not called CC=1 SCAR=6.9
Pod undocumented
34 0 $self->{orig}->can(@_);
35 }
36  
37 sub DOES {
38 0 ▶ my $self = shift;
Subroutine DOES: not called CC=1 SCAR=6.9
Pod undocumented
39 0 $self->{orig}->DOES(@_);
40 }
41  
42 ▶sub DESTROY {}
Subroutine DESTROY: not called CC=1 SCAR=0.0
43  
44 7 1;
45  
46 __END__
« Wrapper.pm ↑ Summary