Wrapped.pm

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