Branch Coverage

blib/lib/Log/Saftpresse/Plugin/Postfix/Delivered.pm
Criterion Covered Total %
branch 0 56 0.0


line true false branch
25 0 0 if ($service eq 'smtpd')
29 0 0 if ((($addr, $size) = $message =~ /from=<([^>]*)>, size=(\d+)/) == 2) { }
0 0 elsif ((($addr, $relay, $delay, $status, $text) = $message =~ /to=<([^>]*)>, (?:orig_to=<[^>]*>, )?relay=([^,]+), (?:conn_use=[^,]+, )?delay=([^,]+), (?:delays=[^,]+, )?(?:dsn=[^,]+, )?status=(\S+)(.*)$/) >= 4) { }
41 0 0 if ($text =~ /forwarded as /)
62 0 0 if $self->ignore_case
64 0 0 if ($self->extended and my $from = $notes->get('from-' . $qid))
68 0 0 if ($status eq 'sent') { }
0 0 elsif ($status eq 'deferred') { }
0 0 elsif ($status eq 'bounced') { }
70 0 0 if (defined $stash->{'forwarded'})
79 0 0 if ($self->saftsumm_mode)
84 0 0 if (my $size = $notes->get('size-' . $qid)) { }
96 0 0 if ($self->deferred_detail > 0)
98 0 0 unless ($self->message_detail)
106 0 0 if ($self->saftsumm_mode)
113 0 0 if ($self->bounce_detail > 0)
115 0 0 unless ($self->message_detail)
122 0 0 if ($self->saftsumm_mode)
135 0 0 if $notes->get('size-' . $qid)
137 0 0 if $self->extended
140 0 0 if (my $client = $notes->get('client-' . $qid))
144 0 0 unless (($domAddr = $addr) =~ s/^[^\@]+\@(.+)$/$1/ == 1)
145 0 0 $client eq 'pickup' ? :
163 0 0 if ($addr) { }
164 0 0 if ($self->uucp_mung and $addr =~ /^(.*!)*([^!]+)!([^!\@]+)@([^\.]+)$/)
166 0 0 $1 ? :
168 0 0 unless $self->ignore_case
169 0 0 if $self->ignore_case