Branch Coverage

blib/lib/Net/OSCAR/Connection/Direct.pm
Criterion Covered Total %
branch 0 128 0.0


line true false branch
30 0 0 if ($error)
34 0 0 if ($$self{'rv'}{'ft_state'} eq 'connecting' or $$self{'rv'}{'ft_state'} eq 'connected')
46 0 0 if ($read and $$self{'rv'}{'ft_state'} eq 'listening') { }
0 0 elsif ($write and $$self{'rv'}{'ft_state'} eq 'proxy_connect') { }
0 0 elsif ($read and $$self{'rv'}{'ft_state'} eq 'proxy_ack') { }
0 0 elsif ($read and $$self{'rv'}{'ft_state'} eq 'proxy_connect') { }
0 0 elsif ($write and $$self{'rv'}{'ft_state'} eq 'connecting') { }
0 0 elsif ($write and $$self{'rv'}{'ft_state'} eq 'connected') { }
0 0 elsif ($read and $$self{'rv'}{'ft_state'} eq 'connected') { }
0 0 elsif ($$self{'rv'}{'ft_state'} eq 'data') { }
0 0 elsif ($$self{'rv'}{'ft_state'} eq 'fin') { }
49 0 0 if (accept $newsock, $$self{'socket'}) { }
56 0 0 if ($$self{'rv'}{'direction'} eq 'send') { }
75 0 0 if ($$self{'sent_proxy_init'}++) { }
87 0 0 unless $ret
95 0 0 unless $ret
97 0 0 if ($$ret{'magic'} != 1098 or $$ret{'msg_type'} != 3) { }
110 0 0 {addins => {description => 'add-ins', value => qq[\tF\cSGL\177\cQ\321\202"DEST\000\000]}, apinfo => {description => 'AP info', value => "\252J2\265\370\204H\306\243\327\214P\227\cY\375["}, buddyicon => {description => 'buddy icons', value => qq[\tF\cSFL\177\cQ\321\202"DEST\000\000]}, chat => {description => 'chatrooms', value => qq[t\217\$ b\207\cQ\321\202"DEST\000\000]}, directim => {description => 'direct IM', value => qq[\tF\cSEL\177\cQ\321\202"DEST\000\000]}, extstatus => {description => 'iChat extended status messages', value => qq[\tF\000\000L\177\cQ\321\202"DEST\000\000]}, fileshare => {description => 'file sharing', value => qq[\tF\cSHL\177\cQ\321\202"DEST\000\000]}, filexfer => {description => 'file transfers', value => qq[\tF\cSCL\177\cQ\321\202"DEST\000\000]}, games => {description => 'games', value => qq[\tF\cSJL\177\cQ\321\202"DEST\000\000]}, games2 => {description => 'games 2', value => qq[\tF\cSJL\177\cQ\321"\202DEST\000\000]}, hiptop => {description => 'hiptop', value => qq[\tF\cS#L\177\cQ\321\202"DEST\000\000]}, icq => {description => 'EveryBuddy ICQ support', value => qq[\tF\cSDL\177\cQ\321\202"DEST\000\000]}, icqrelay => {description => 'ICQ server relay', value => qq[\tF\cSIL\177\cQ\321\202"DEST\000\000]}, icqrtf => {description => 'ICQ RTF', value => qq[\227\261'Q\$ {description => 'ICQ UTF-8', value => qq[\tF\cSNL\177\cQ\321\202"DEST\000\000]}, icqutf8old => {description => 'old ICQ UTF-8', value => ".zdu\372\337M\310\210o\3525\225\375\266\337"}, interoperate => {description => 'ICQ/AIM interoperation', value => qq[\tF\cSML\177\cQ\321\202"DEST\000\000]}, secureim => {description => 'SecureIM encryption', value => qq[\tF\cA\377L\177\cQ\321\202"DEST\000\000]}, sendlist => {description => 'buddy list sending', value => qq[\tF\cSKL\177\cQ\321\202"DEST\000\000]}, trilliancrypt => {description => 'Trillian encryption', value => "\362\347\307\364\376\255M\373\26256y\213\337\000\000"}, video => {description => 'A/V chat', value => qq[\tF\cA\cEL\177\cQ\321\202"DEST\000\000]}, voice => {description => 'voice chat', value => qq[\tF\cSAL\177\cQ\321\202"DEST\000\000]}}->{$$self{'rv'}{'type'}} ? :
121 0 0 unless $ret
123 0 0 if ($$ret{'magic'} != 1098 or $$ret{'msg_type'} != 5) { }
134 0 0 if ($$self{'rv'}{'direction'} eq 'send') { }
149 0 0 {addins => {description => 'add-ins', value => qq[\tF\cSGL\177\cQ\321\202"DEST\000\000]}, apinfo => {description => 'AP info', value => "\252J2\265\370\204H\306\243\327\214P\227\cY\375["}, buddyicon => {description => 'buddy icons', value => qq[\tF\cSFL\177\cQ\321\202"DEST\000\000]}, chat => {description => 'chatrooms', value => qq[t\217\$ b\207\cQ\321\202"DEST\000\000]}, directim => {description => 'direct IM', value => qq[\tF\cSEL\177\cQ\321\202"DEST\000\000]}, extstatus => {description => 'iChat extended status messages', value => qq[\tF\000\000L\177\cQ\321\202"DEST\000\000]}, fileshare => {description => 'file sharing', value => qq[\tF\cSHL\177\cQ\321\202"DEST\000\000]}, filexfer => {description => 'file transfers', value => qq[\tF\cSCL\177\cQ\321\202"DEST\000\000]}, games => {description => 'games', value => qq[\tF\cSJL\177\cQ\321\202"DEST\000\000]}, games2 => {description => 'games 2', value => qq[\tF\cSJL\177\cQ\321"\202DEST\000\000]}, hiptop => {description => 'hiptop', value => qq[\tF\cS#L\177\cQ\321\202"DEST\000\000]}, icq => {description => 'EveryBuddy ICQ support', value => qq[\tF\cSDL\177\cQ\321\202"DEST\000\000]}, icqrelay => {description => 'ICQ server relay', value => qq[\tF\cSIL\177\cQ\321\202"DEST\000\000]}, icqrtf => {description => 'ICQ RTF', value => qq[\227\261'Q\$ {description => 'ICQ UTF-8', value => qq[\tF\cSNL\177\cQ\321\202"DEST\000\000]}, icqutf8old => {description => 'old ICQ UTF-8', value => ".zdu\372\337M\310\210o\3525\225\375\266\337"}, interoperate => {description => 'ICQ/AIM interoperation', value => qq[\tF\cSML\177\cQ\321\202"DEST\000\000]}, secureim => {description => 'SecureIM encryption', value => qq[\tF\cA\377L\177\cQ\321\202"DEST\000\000]}, sendlist => {description => 'buddy list sending', value => qq[\tF\cSKL\177\cQ\321\202"DEST\000\000]}, trilliancrypt => {description => 'Trillian encryption', value => "\362\347\307\364\376\255M\373\26256y\213\337\000\000"}, video => {description => 'A/V chat', value => qq[\tF\cA\cEL\177\cQ\321\202"DEST\000\000]}, voice => {description => 'voice chat', value => qq[\tF\cSAL\177\cQ\321\202"DEST\000\000]}}->{$$self{'rv'}{'type'}} ? :
154 0 0 if ($$self{'rv'}{'direction'} eq 'receive')
159 0 0 if ($$self{'rv'}{'direction'} eq 'send')
160 0 0 unless $$self{'rv'}{'accepted'}
165 0 0 if ($$self{'sent_oft_header'}) { }
171 0 0 if ($$self{'rv'}{'direction'} eq 'send' and not $$self{'got_files'})
179 0 0 unless $ret
181 0 0 if ($$self{'rv'}{'direction'} eq 'receive')
182 0 0 if ($$self{'rv'}{'file_count'} == 1 or $$self{'sent_oft_header'} and $$self{'sent_oft_header'} >= 2) { }
188 0 0 unless $ret
199 0 0 unless $ret
201 0 0 if ($$self{'rv'}{'direction'} eq 'send') { }
0 0 elsif ($$self{'got_files'}) { }
207 0 0 if ($ret)
221 0 0 if ($write and $$self{'rv'}{'direction'} eq 'send') { }
0 0 elsif ($read and $$self{'rv'}{'direction'} eq 'receive') { }
223 0 0 if ($$self{'sent_data'}++) { }
229 0 0 if ($ret) { }
244 0 0 if ($$self{'got_data'}++) { }
252 0 0 if ($ret) { }
262 0 0 if ($$self{'received_checksum'} != $$self{'checksum'}) { }
280 0 0 if ($read and $$self{'rv'}{'direction'} eq 'send') { }
0 0 elsif ($write and $$self{'rv'}{'direction'} eq 'receive') { }
283 0 0 unless $ret
285 0 0 if (@{$$self{'rv'}{'data'};}) { }
297 0 0 unless $ret
299 0 0 if (++$$self{'got_files'} < $$self{'rv'}{'file_count'}) { }
319 0 0 if ($$self{'rv'}{'ft_state'} eq 'connected' and ($$self{'sent_oft_header'} and $$self{'sent_oft_header'} != 2)) { }
320 0 0 if ($$self{'rv'}{'direction'} eq 'send') { }
353 0 0 unless $header
356 0 0 if ($magic ne 'OFT2')
364 0 0 unless $data
367 0 0 if ($$self{'rv'}{'direction'} eq 'receive') { }
368 0 0 if ($protodata{'file_count'} != $$self{'rv'}{'file_count'} or $protodata{'byte_count'} != $$self{'rv'}{'total_size'}) { }
384 0 0 if ($protodata{'cookie'} ne $$self{'rv'}{'cookie'})
405 0 0 $i & 1 ? :
409 0 0 if ($check > $oldcheck)
429 0 0 unless ($$self{'buff_gotproxy'})
431 0 0 if (not defined $header) { }
0 0 elsif ($header eq '') { }
441 0 0 if ($$self{'proxy_size'} > 0) { }
443 0 0 if (not defined $data) { }
0 0 elsif ($data eq '') { }