Branch Coverage

File:bin/submit_abuse_report
Coverage:28.6%

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) { }
11350TFunless open my $fh, "<:raw", $ARGV[0]
12350TFunless defined $raw and length $raw
12950TFif $verbose
140100TFunless (@contacts)
16150TFunless @unresolved
166100TFif ($u->{'type'} eq 'url_host') { }
19750TFif ($dry_run)
2120TFif ($interactive)
2170TFunless (defined $ans and lc $ans eq "y")
2230TFif $verbose
2380TFif ($ok) { }
2490TF$failed ? :
26650TFif $bcc
30050TFif (defined $raw_ref and length $$raw_ref) { }
30450TF$total < $preview ? :
30650TF$total < $preview ? :
30750TFif $total > $preview
32250TFif ($n_routes > $n_contacts) { }
3240TF$n_contacts == 1 ? :
0TF$n_routes == 1 ? :
32850TF$n_contacts == 1 ? :
34050TFif (@form_cs)
3490TFif $c->{'form_domain'}
3500TFif ($c->{'form_paste'})
3530TFif ($c->{'form_upload'})
3740TFunless (open $tty, "<", "/dev/tty")
3800TFif defined $ans
4170TFif (my $dump = $ENV{'SUBMIT_ABUSE_DUMP_MIME'})
4180TFif (open my $fh, ">", $dump)
4330TFunless ($smtp)
4400TFunless $smtp->mail("")
4410TFunless $smtp->to($a{'to'})
4430TFif $a{'bcc'}
4440TFunless $smtp->data
4450TFunless $smtp->datasend($mail)
4460TFunless $smtp->dataend
4510TFunless ($ok)
4930TFif $orig and $orig->{'ip'}
50150TFif $mail_from
51050TFunless $rcpt_seen{$addr}++
51550TFif $arrival
51950TFif $rdomain
52550TFunless $uri_seen{$u->{'url'}}++
53050TFif $auth_res
5630TFif (defined $a{'original'} and length ${$a{'original'};})
5810TFif $a{'bcc'}
63550TF$orig ? :