blib/lib/Paranoid/Log/Email.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 7 | 16 | 43.7 |
line | true | false | branch |
---|---|---|---|
59 | 0 | 4 | unless (exists $record{'options'}{'mailhost'}) |
63 | 0 | 4 | unless (exists $record{'options'}{'recipient'}) |
103 | 4 | 0 | if (defined $record{'message'}) |
112 | 1 | 3 | exists $record{'options'}{'sender'} ? : |
118 | 4 | 0 | exists $record{'options'}{'subject'} ? : |
139 | 0 | 4 | if ($smtp = 'Net::SMTP'->new($record{'options'}{'mailhost'}, 'Timeout', 30)) { } |
146 | 0 | 0 | if ($smtp->mail($sender)) { } |
151 | 0 | 0 | unless $smtp->to($record{'options'}{'recipient'}) |