Branch Coverage

blib/lib/POE/Component/Server/FTP/DataSession.pm
Criterion Covered Total %
branch 0 74 0.0


line true false branch
86 0 0 if ($$opt{'data_port'}) { }
106 0 0 if $$opt{'rest'}
165 0 0 if ($$heap{'listening'} == 0) { }
201 0 0 unless ($$heap{'send_done'} == 1)
240 0 0 if (exists $$opt{$f})
262 0 0 if (exists $$opt{$f})
293 0 0 if (defined $$heap{'input_fh'}) { }
0 0 elsif (not defined $$heap{'output_fh'}) { }
297 0 0 if ($$heap{'listening'} == 0)
308 0 0 if (ref $$heap{'data'} eq 'POE::Wheel::SocketFactory')
319 0 0 if (not defined $$heap{'input_fh'} && ref $$heap{'input_fh'}) { }
0 0 elsif ($$heap{'send_recv_okay'} and defined $$heap{'data'}) { }
324 0 0 if (ref $$heap{'data'} eq 'POE::Wheel::SocketFactory')
326 0 0 if (defined $$heap{'time_out'})
333 0 0 if (defined $$heap{'time_out'})
340 0 0 if ($$heap{'params'}{'DownloadLimit'} > 0)
341 0 0 if ($$heap{'params'}{'LimitSceme'} eq 'ip') { }
342 0 0 if ($kernel->call($$heap{'params'}{'Alias'}, '_bw_limit', 'dl', $$heap{'remote_ip'}, $$heap{'bps'}))
347 0 0 if ($$heap{'bps'} > $$heap{'params'}{'DownloadLimit'})
360 0 0 if ($len > 0) { }
380 0 0 if (not defined $$heap{'output_fh'} && ref $$heap{'output_fh'}) { }
0 0 elsif ($$heap{'send_recv_okay'} and defined $$heap{'data'}) { }
385 0 0 if (ref $$heap{'data'} eq 'POE::Wheel::SocketFactory')
387 0 0 if (defined $$heap{'time_out'})
394 0 0 if (defined $$heap{'time_out'})
401 0 0 if ($$heap{'params'}{'UploadLimit'} > 0)
402 0 0 if ($$heap{'params'}{'LimitSceme'} eq 'ip') { }
403 0 0 if ($kernel->call($$heap{'params'}{'Alias'}, '_bw_limit', 'ul', $$heap{'remote_ip'}, $$heap{'bps'})) { }
410 0 0 if ($$heap{'bps'} > $$heap{'params'}{'UploadLimit'}) { }
419 0 0 if (defined $data)
431 0 0 if ($errnum) { }
438 0 0 if (defined $$heap{'output_fh'})
443 0 0 if (defined $$heap{'input_fh'})
457 0 0 if ($$heap{'send_done'} == 1)
481 0 0 unless $$heap{'data'}
483 0 0 if (ref $$heap{'data'} eq 'POE::Wheel::SocketFactory')
492 0 0 if ($$heap{'data'}->get_driver_out_octets == 0) { }