Condition Coverage

blib/lib/Net/OSCAR/Connection.pm
Criterion Covered Total %
condition 0 91 0.0


and 3 conditions

line !l l&&!r l&&r condition
101 0 0 0 $snac{'family'} == -1 and exists $data{'family'}
105 0 0 0 $$self{'paused'} and not $data{'nopause'}
176 0 0 0 $$self{'socket'} and CORE::fileno $$self{'socket'}
0 0 0 $$self{'socket'} and CORE::fileno $$self{'socket'} and getpeername $$self{'socket'}
203 0 0 0 $readlen > 0 and $no_reread != 1
212 0 0 0 not ${$$self{'buffer'};} and $nchars == 0
297 0 0 0 $snac{'family'} and not $$self{'families'}{$snac{'family'}}
308 0 0 0 exists $snac{'family'} and exists $snac{'subtype'}
310 0 0 0 $$self{'session'}{'rate_manage_mode'} != 0 and $$self{'rate_limits'}
539 0 0 0 $write and $$self{'outbuff'}
544 0 0 0 $write and not $$self{'connected'}
0 0 0 $read and not $$self{'ready'}

or 2 conditions

line l !l condition
45 0 0 ref $class || $class || 'Net::OSCAR::Connection'
55 0 0 $$self{'state'} ||= 'write'
68 0 0 $$self{'pause_queue'} ||= []
89 0 0 $data{'protodata'} ||= {}
113 0 0 $snac{'channel'} ||= 2
130 0 0 $channel ||= 2
174 0 0 $channel ||= 2
191 0 0 $no_reread ||= 0
262 0 0 $no_reread || 2
281 0 0 $snac{'family'} ||= 0
282 0 0 $snac{'subtype'} ||= 0
283 0 0 $snac{'flags1'} ||= 0
284 0 0 $snac{'flags2'} ||= 0
285 0 0 $snac{'data'} ||= ''
286 0 0 $snac{'reqdata'} ||= ''
307 0 0 $snac{'channel'} ||= 2
417 0 0 $$self{'session'}{'proxy_port'} || 1080
499 0 0 $$self{'local_addr'} || '0.0.0.0'
511 0 0 $$self{'session'}{'local_port'} || $port || 0
0 0 $$self{'session'}{'local_ip'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
193 0 0 0 $$self{'buffsize'} ||= $len
212 0 0 0 ${$$self{'buffer'};} || defined $nchars
287 0 0 0 $snac{'reqid'} ||= $snac{'subtype'} << 16 | (unpack 'n', randchars(2))[0]
407 0 0 0 $$self{'session'}{'proxy_type'} eq 'SOCKS4' or $$self{'session'}{'proxy_type'} eq 'SOCKS5'
0 0 0 $$self{'session'}{'proxy_type'} eq 'HTTP' or $$self{'session'}{'proxy_type'} eq 'HTTPS'