Branch Coverage

File:bin/submit_abuse_report
Coverage:30.2%

line%coveragebranch
6850TFunless &GetOptions("dry-run", \$dry_run, "interactive|i", \$interactive, "bcc", \$bcc, "bcc-to=s", \$bcc_to, "from=s", \$from, "smtp=s", \$smtp_arg, "trusted=s", \@trusted, "timeout=i", \$timeout, "verbose", \$verbose, "help", \$help)
81100TFif $help
8350TFunless ($dry_run or $from)
8850TFif ($from and not $from =~ /\@/)
9750TFif ($bcc_to) { }
50TFelsif ($bcc) { }
980TFunless $bcc_to =~ /\@/
1020TFunless $from
11250TFif (@ARGV) { }
11550TFunless my($safe_path) = $ARGV[0] =~ /\A([^\x00\r\n]+)\z/
117100TFif $safe_path =~ m[(?:^|/)\.\.(?:/|$)]
11950TFunless open my $fh, "<:raw", $safe_path
12950TFunless defined $raw and length $raw
13550TFif $verbose
146100TFunless (@contacts)
16750TFunless @unresolved
172100TFif ($u->{'type'} eq 'url_host') { }
20350TFif ($dry_run)
2180TFif ($interactive)
2230TFunless (defined $ans and lc $ans eq "y")
2290TFif $verbose
2440TFif ($ok) { }
2550TF$failed ? :
27250TFif $bcc
30650TFif (defined $raw_ref and length $$raw_ref) { }
31050TF$total < $preview ? :
31250TF$total < $preview ? :
31350TFif $total > $preview
32850TFif ($n_routes > $n_contacts) { }
3300TF$n_contacts == 1 ? :
0TF$n_routes == 1 ? :
33450TF$n_contacts == 1 ? :
34650TFif (@form_cs)
3550TFif $c->{'form_domain'}
3560TFif ($c->{'form_paste'})
3590TFif ($c->{'form_upload'})
3800TFunless (open $tty, "<", "/dev/tty")
3860TFif defined $ans
4240TFif (my $dump = $ENV{'SUBMIT_ABUSE_DUMP_MIME'})
4250TFif (open my $fh, ">", $dump)
4400TFunless ($smtp)
4470TFunless $smtp->mail("")
4480TFunless $smtp->to($a{'to'})
4500TFif $a{'bcc'}
4510TFunless $smtp->data
4520TFunless $smtp->datasend($mail)
4530TFunless $smtp->dataend
4580TFunless ($ok)
5000TFif $orig and $orig->{'ip'}
50850TFif $mail_from
51750TFunless $rcpt_seen{$addr}++
52250TFif $arrival
52650TFif $rdomain
53250TFunless $uri_seen{$u->{'url'}}++
53750TFif $auth_res
5700TFif (defined $a{'original'} and length ${$a{'original'};})
5880TFif $a{'bcc'}
64250TF$orig ? :