Branch Coverage

blib/lib/POE/Component/Client/SOCKS.pm
Criterion Covered Total %
branch 7 54 12.9


line true false branch
20 0 0 if (ref $_[0] and $_[0]->isa('POE::Component::Client::SOCKS'))
24 0 0 if ($self)
35 0 0 if (ref $_[0] and $_[0]->isa('POE::Component::Client::SOCKS'))
39 0 0 if ($self)
54 0 1 if ($command =~ /^(bind|connect)$/)
55 0 0 unless ($opts{'successevent'} and $opts{'failureevent'})
59 0 0 unless ($opts{'remoteaddress'} and $opts{'remoteport'})
63 0 0 unless ($opts{'socksproxy'})
67 0 0 if ($command eq 'bind' and not $opts{'remoteaddress'} =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/)
72 0 1 ref $options eq 'HASH' ? :
107 1 0 if ($command eq 'spawn')
110 0 1 if $$self{'alias'}
111 1 0 unless $$self{'alias'}
114 0 0 if ($kernel == $sender)
125 1 0 unless ($$self{'sender_id'})
127 1 0 unless $$self{'alias'}
139 0 0 if (ref $_[10] eq 'HASH') { }
146 0 0 if ($session == $sender) { }
152 0 0 unless ($$args{'successevent'} and $$args{'failureevent'})
156 0 0 unless ($$args{'remoteaddress'} and $$args{'remoteport'})
160 0 0 unless ($$args{'socksproxy'})
164 0 0 if ($state eq 'bind' and not $$args{'remoteaddress'} =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/)
170 0 0 if ($state eq 'connect') { }
171 0 0 if ($$args{'remoteaddress'} =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/) { }
239 0 0 if (length $input != 8)
244 0 0 unless (scalar @resp == 4 and $resp[0] eq '0' and $resp[1] =~ /^(90|91|92|93)$/)
253 0 0 unless ($cd eq '90')