Branch Coverage

blib/lib/Mail/SpamAssassin/Plugin/PDFInfo.pm
Criterion Covered Total %
branch 0 162 0.0


line true false branch
381 0 0 unless $tag and $value
383 0 0 if (exists $pms->{'tag_data'}{$tag}) { }
397 0 0 if exists $pms->{'pdfinfo'}{'no_parts'}
410 0 0 unless $part_count
418 0 0 $type ? :
0 0 $name ? :
0 0 $cte ? :
421 0 0 unless $cte =~ /^(?:base64|quoted\-printable)$/
426 0 0 unless $name =~ /\.[fp]df$/ or $type eq "pdf"
431 0 0 if ($type and exists $get_details{$type})
446 0 0 unless defined $name
449 0 0 unless (exists $pms->{'pdfinfo'})
453 0 0 if exists $pms->{'pdfinfo'}{'no_parts'}
455 0 0 unless exists $pms->{'pdfinfo'}{'names_pdf'}
456 0 0 if exists $pms->{'pdfinfo'}{'names_pdf'}{$name}
464 0 0 unless defined $re
467 0 0 unless (exists $pms->{'pdfinfo'})
471 0 0 if exists $pms->{'pdfinfo'}{'no_parts'}
472 0 0 unless exists $pms->{'pdfinfo'}{'names_pdf'}
475 0 0 unless ($rec)
482 0 0 if ($name =~ /$rec/)
497 0 0 unless (exists $pms->{'pdfinfo'})
501 0 0 if exists $pms->{'pdfinfo'}{'no_parts'}
509 0 0 unless defined $min
512 0 0 unless (exists $pms->{'pdfinfo'})
516 0 0 if exists $pms->{'pdfinfo'}{'no_parts'}
517 0 0 unless exists $pms->{'pdfinfo'}{'count_pdf'}
526 0 0 unless defined $min
529 0 0 unless (exists $pms->{'pdfinfo'})
533 0 0 if exists $pms->{'pdfinfo'}{'no_parts'}
534 0 0 unless exists $pms->{'pdfinfo'}{'count_pdf_images'}
543 0 0 unless defined $min
546 0 0 unless (exists $pms->{'pdfinfo'})
550 0 0 if exists $pms->{'pdfinfo'}{'no_parts'}
551 0 0 unless exists $pms->{'pdfinfo'}{'pc_pdf'}
561 0 0 unless defined $min and defined $max
564 0 0 unless (exists $pms->{'pdfinfo'})
568 0 0 if exists $pms->{'pdfinfo'}{'no_parts'}
569 0 0 unless exists $pms->{'pdfinfo'}{'pc_pdf'}
575 0 0 unless $textlen > 0 and exists $pms->{'pdfinfo'}{'pc_pdf'} and $pms->{'pdfinfo'}{'pc_pdf'} > 0
590 0 0 unless (exists $pms->{'pdfinfo'})
594 0 0 if exists $pms->{'pdfinfo'}{'no_parts'}
595 0 0 unless $pms->{'pdfinfo'}{'count_pdf'}
598 0 0 if $pms->{'pdfinfo'}{'no_body_text'}
605 0 0 unless $line =~ /\S/
606 0 0 if $line =~ /^Subject/
612 0 0 if ($bytes == 0 or $bytes <= $min)
626 0 0 unless defined $height and defined $width
629 0 0 unless (exists $pms->{'pdfinfo'})
633 0 0 if exists $pms->{'pdfinfo'}{'no_parts'}
634 0 0 unless exists $pms->{'pdfinfo'}{'dems_pdf'}
635 0 0 if exists $pms->{'pdfinfo'}{'dems_pdf'}{"${height}x$width"}
643 0 0 unless defined $minh and defined $minw
646 0 0 unless (exists $pms->{'pdfinfo'})
650 0 0 if exists $pms->{'pdfinfo'}{'no_parts'}
651 0 0 unless exists $pms->{'pdfinfo'}{'dems_pdf'}
655 0 0 if $h < $minh
656 0 0 if $w < $minw
657 0 0 if defined $maxh and $h > $maxh
658 0 0 if defined $maxw and $w > $maxw
672 0 0 unless defined $md5
677 0 0 unless (exists $pms->{'pdfinfo'})
681 0 0 if exists $pms->{'pdfinfo'}{'no_parts'}
682 0 0 unless exists $pms->{'pdfinfo'}{'md5'}
683 0 0 if exists $pms->{'pdfinfo'}{'md5'}{$uc_md5}
692 0 0 unless defined $md5
697 0 0 unless (exists $pms->{'pdfinfo'})
701 0 0 if exists $pms->{'pdfinfo'}{'no_parts'}
702 0 0 unless exists $pms->{'pdfinfo'}{'fuzzy_md5'}
703 0 0 if exists $pms->{'pdfinfo'}{'fuzzy_md5'}{$uc_md5}
711 0 0 unless $detail and $regex
714 0 0 unless (exists $pms->{'pdfinfo'})
718 0 0 if exists $pms->{'pdfinfo'}{'no_parts'}
719 0 0 unless exists $pms->{'pdfinfo'}{'details'}
722 0 0 unless $check_value
725 0 0 unless ($rec)
730 0 0 if ($check_value =~ /$rec/)
741 0 0 unless defined $value
742 0 0 if $value < $min
743 0 0 if defined $max and $value > $max
744 0 0 if defined $nomaxequal and $nomaxequal and $value == $max