| line | % | coverage | branch |
| 60 | 100 | T | F | unless &GetOptions("to|t=s", \$opt{'to'}, "from|f=s", \$opt{'from'}, "domain=s", \$opt{'domain'}, "selector=s", \$opt{'selector'}, "keyfile|k=s", \$opt{'keyfile'}, "sendmail=s", \$opt{'sendmail'}, "plain", \$opt{'plain'}, "dry-run|n", \$opt{'dry-run'}, "save=s", \$opt{'save'}, "help|h", sub {
usage(0);
}
) |
| 62 | 100 | T | F | unless $opt{'to'} and $opt{'from'} |
| 66 | 100 | T | F | if unusable_address($opt{'to'}) or unusable_address($opt{'from'}) |
| 75 | 100 | T | F | if ($opt{'plain'}) { } |
| 79 | 100 | T | F | unless ($keyfile) |
| 81 | 50 | T | F | @candidates ? : |
| 85 | 100 | T | F | unless -r $keyfile |
| 90 | 50 | T | F | unless eval {
do {
require Mail::DKIM::Signer;
require Mail::Send::DKIM;
1
}
} |
| 125 | 100 | T | F | $opt{'plain'} ? : |
| 127 | 100 | T | F | if ($opt{'save'}) |
| 128 | 50 | T | F | unless open my $fh, ">", $opt{'save'} |
| 130 | 0 | T | F | unless close $fh |
| 134 | 100 | T | F | if ($opt{'dry-run'}) |
| 140 | 100 | T | F | unless open my $sendmail, "|-", $opt{'sendmail'}, "-t", "-f", $opt{'from'} |
| 143 | 50 | T | F | unless (close $sendmail) |
| 177 | 50 | T | F | if defined $signed |
| 192 | 50 | T | F | $ENV{'HOME'} ? : |
| 50 | T | F | $ENV{'HOME'} ? : |
| 50 | T | F | $ENV{'HOME'} ? : |
| 197 | 100 | T | F | unless -d $dir |
| 199 | 50 | T | F | unless $name =~ /\.(?:private|key|pem)\z/ |
| 212 | 50 | T | F | if $key =~ /\Q$opt{'selector'}\E/ or $key =~ /\Q$opt{'domain'}\E/ |
| 224 | 100 | T | F | if $address =~ /[\x00-\x20\x7f]/ |
| 225 | 100 | T | F | if $address =~ /\A-/ |