Branch Coverage

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


line true false branch
19 0 0 if (ref $_[0] and $_[0]->isa('POE::Component::Client::SOCKS'))
23 0 0 if ($self)
34 0 0 if (ref $_[0] and $_[0]->isa('POE::Component::Client::SOCKS'))
38 0 0 if ($self)
53 0 1 if ($command =~ /^(bind|connect)$/)
54 0 0 unless ($opts{'successevent'} and $opts{'failureevent'})
58 0 0 unless ($opts{'remoteaddress'} and $opts{'remoteport'})
62 0 0 unless ($opts{'socksproxy'})
66 0 0 if ($command eq 'bind' and not $opts{'remoteaddress'} =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/)
71 0 1 ref $options eq 'HASH' ? :
106 1 0 if ($command eq 'spawn')
109 0 1 if $self->{'alias'}
110 1 0 unless $self->{'alias'}
113 0 0 if ($kernel == $sender)
124 1 0 unless ($self->{'sender_id'})
126 1 0 unless $self->{'alias'}
138 0 0 if (ref $_[10] eq 'HASH') { }
145 0 0 if ($session == $sender) { }
151 0 0 unless ($args->{'successevent'} and $args->{'failureevent'})
155 0 0 unless ($args->{'remoteaddress'} and $args->{'remoteport'})
159 0 0 unless ($args->{'socksproxy'})
163 0 0 if ($state eq 'bind' and not $args->{'remoteaddress'} =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/)
169 0 0 if ($state eq 'connect') { }
170 0 0 if ($args->{'remoteaddress'} =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/) { }
238 0 0 if (length $input != 8)
243 0 0 unless (scalar @resp == 4 and $resp[0] eq '0' and $resp[1] =~ /^(90|91|92|93)$/)
252 0 0 unless ($cd eq '90')