Branch Coverage

lib/Crypt/Simple/SMIME.pm
Criterion Covered Total %
branch 31 52 59.6


line true false branch
189 5 1 unless ($$opt{'openssl'})
194 5 1 unless ($$opt{'sendmail'})
220 1 7 if (not $from) { }
1 6 elsif (not $to) { }
1 5 elsif (not $subject) { }
1 4 elsif (not $message) { }
1 3 elsif (not -f $$self{'open_ssl_path'}) { }
2 1 elsif (not -f $$self{'sendmail_path'}) { }
1 0 elsif (not -f $$self{'certificate_path'}) { }
275 0 0 if ($result)
286 0 0 if (-f $openssl_err)
287 0 0 if (-f $sendmail_out)
288 0 0 if (-f $sendmail_err)
305 0 1 if (-f $$self{'tmp_cert_file'})
310 0 1 if (-f $$self{'tmp_msg_file'})
315 1 0 if (-f $$self{'tmp_signed_cert_path'})
341 5 0 if (-f '/usr/bin/openssl') { }
0 0 elsif (-f '/usr/local/bin/openssl') { }
357 0 5 if (-f '/usr/bin/sendmail') { }
0 5 elsif (-f '/usr/local/bin/sendmail') { }
0 5 elsif (-f '/usr/lib/sendmail') { }
376 21 18 if ($value)
422 0 2 unless ($result)
517 2 2 if ($var)
519 0 2 if (!$var =~ /\n/ and -f $var)
547 1 0 if ($var)