Branch Coverage

blib/lib/Notify/Email.pm
Criterion Covered Total %
branch 4 22 18.1


line true false branch
28 0 1 unless exists $$options{'app'}
42 0 1 unless $$self{'__MAILBOX'} = 'Mail::Box::Manager'->new
45 1 0 $$self{'__CONFIG'}{'mbox'} ? :
65 0 0 $$self{'__CONFIG'}{'smtp'} ? :
68 0 0 unless ref($sender = 'Mail::Sender'->new({'smtp', $smtp, 'from', $$notice_attribs{'src'}}))
75 0 0 unless $sender->MailMsg({'from', $$notice_attribs{'src'}, 'to', $$notice_attribs{'dest'}, 'smtp', $smtp, 'subject', $subject, 'msg', $$notice_attribs{'message'}})
94 0 0 unless $$self{'__FOLDER'}
107 0 0 if ($subject =~ /^.*(Re:)?\s*[\s*$$self{'__CONFIG'}{'app'}\s*Notification\s*]\s*#\s*$$notice_attribs{'id'}\s*$/i)
109 0 0 if ($lastindex < 0) { }
125 0 0 if $lastindex < 0
137 1 0 if $$self{'__FOLDER'}