Branch Coverage

blib/lib/ftp.pl
Criterion Covered Total %
branch 0 126 0.0


line true false branch
159 0 0 if ($ftp_show)
179 0 0 if ($ftp_show)
180 0 0 if $proxy
182 0 0 if ($ftp_port != 21)
188 0 0 if ($proxy) { }
189 0 0 unless ($proxy_gateway)
193 0 0 if ($debug)
205 0 0 unless (&chat::open_port($connect_site, $connect_port))
206 0 0 if ($retry_call) { }
207 0 0 if $ftp_show
211 0 0 if $proxy
212 0 0 if $ftp_show
220 0 0 unless ($res)
242 0 0 if ($@ =~ /^timeout/)
252 0 0 if ($proxy) { }
269 0 0 if ($val == 1)
272 0 0 if ($val == 2)
288 0 0 if ($val == 1)
335 0 0 unless (&open_data_socket())
339 0 0 if ($options) { }
358 0 0 unless ($ret)
368 0 0 unless accept NS, S
394 0 0 unless ($ret)
434 0 0 if ($@ =~ /^timeout/)
447 0 0 if ($loc_fname eq "")
451 0 0 unless (&open_data_socket())
456 0 0 if ($loc_fname ne "-")
459 0 0 if ($restart and $restart_at > 0 and &restart($restart_at)) { }
486 0 0 if ($ret != 1)
500 0 0 unless accept NS, S
505 0 0 $restart ? :
0 0 unless (CORE::open FH, ($restart ? ">>" : ">") . $loc_fname)
522 0 0 if ($strip_cr)
525 0 0 if ($ftp_show)
530 0 0 if ($hashes % $hashnl == 0)
535 0 0 unless (print FH $buf)
545 0 0 if ($len < 0)
551 0 0 if ($ftp_show)
552 0 0 if ($hashes and $hashes % $hashnl != 0)
556 0 0 if ($secs <= 0)
608 0 0 if ($loc_fname eq "")
612 0 0 unless (&open_data_socket())
639 0 0 if ($ret != 1)
652 0 0 unless accept NS, S
657 0 0 unless (CORE::open FH, "<$loc_fname")
690 0 0 unless ($ret)
748 0 0 unless ($site_command_check)
761 0 0 if ($ret eq 0)
762 0 0 if $ftp_show
789 0 0 if ($ret)
790 0 0 if ($response =~ /^257\s"(.*)"\s.*$/)
870 0 0 if ($ret)
911 0 0 if ($ftp_show)
942 0 0 if ($code =~ /^\d/)
963 0 0 if ($ftp_show > 9)
968 0 0 if ($ret == 100)
1008 0 0 unless socket S, $pf_inet, $sock_stream, $proto
1009 0 0 unless bind S, $this
1022 0 0 unless listen S, 5
1045 0 0 if ($send_cmd =~ /\n/)
1049 0 0 if ($ftp_show)
1052 0 0 if ($send_cmd =~ /^PASS/)
1072 0 0 unless (-f $fname)