Condition Coverage

blib/lib/Parse/Syslog/Mail.pm
Criterion Covered Total %
condition 2 47 4.2


and 3 conditions

line !l l&&!r l&&r condition
228 894 0 6 exists $mail{'ruleset'} and exists $mail{'arg1'}
257 0 0 0 $text =~ s/^(new|end) msg (\d+)$// and $mail{'status'} = "$1 message"
0 0 0 $text =~ s/^(new|end) msg (\d+)$// and $mail{'status'} = "$1 message" and $mail{'id'} = $2
261 0 0 0 $text =~ s[^(triple bounce: discarding bounce)/(\d+)$][] and $mail{'status'} = $1
0 0 0 $text =~ s[^(triple bounce: discarding bounce)/(\d+)$][] and $mail{'status'} = $1 and $mail{'id'} = $2
265 0 0 0 $text =~ s/^info msg (\d+): bytes (\d+) from (<[^>]*>) // and $mail{'id'} = $1
0 0 0 $text =~ s/^info msg (\d+): bytes (\d+) from (<[^>]*>) // and $mail{'id'} = $1 and $mail{'size'} = $2
269 0 0 0 $text =~ s/^(starting delivery (\d+)): msg (\d+) to (local|remote) (.+)$// and $mail{'status'} = $1
0 0 0 $text =~ s/^(starting delivery (\d+)): msg (\d+) to (local|remote) (.+)$// and $mail{'status'} = $1 and $mail{'id'} = $3
0 0 0 $text =~ s/^(starting delivery (\d+)): msg (\d+) to (local|remote) (.+)$// and $mail{'status'} = $1 and $mail{'id'} = $3 and $delivery2id{$2} = $3
0 0 0 $text =~ s/^(starting delivery (\d+)): msg (\d+) to (local|remote) (.+)$// and $mail{'status'} = $1 and $mail{'id'} = $3 and $delivery2id{$2} = $3 and $mail{'delivery_id'} = $2
0 0 0 $text =~ s/^(starting delivery (\d+)): msg (\d+) to (local|remote) (.+)$// and $mail{'status'} = $1 and $mail{'id'} = $3 and $delivery2id{$2} = $3 and $mail{'delivery_id'} = $2 and $mail{'delivery_type'} = $4
273 0 0 0 $text =~ s/^delivery (\d+): +// and $mail{'delivery_id'} = $1
277 0 0 0 $text =~ s/^(success|deferral|failure): +(\S+)// and $mail{'status'} = "$1: $2"

or 2 conditions

line l !l condition
273 0 0 $delivery2id{$1} || ''

or 3 conditions

line l !l&&r !l&&!r condition
281 0 0 0 $mail{'id'} ||= 'psm' . time