Branch Coverage

lib/Sisimai/Lhost/ApacheJames.pm
Criterion Covered Total %
branch 29 38 76.3


line true false branch
23 0 207 if $mhead->{'subject'} eq "[BOUNCE]"
24 6 201 if defined $mhead->{'message-id'} and rindex($mhead->{'message-id'}, ".JavaMail.") > -1
25 0 207 if grep {rindex($_, "JAMES SMTP Server") > -1;} @{$$mhead{"received"};}
26 201 6 unless $match
50 6 108 unless ($readcursor)
52 6 0 if index($e, $startingof->{'message'}[0]) == 0
55 0 108 unless $readcursor & $indicators->{'deliverystatus'}
56 24 84 unless length $e
69 6 78 if ($e =~ /\A[ ][ ]RCPT[ ]TO:[ ]([^ ]+[\@][^ ]+)\z/) { }
6 72 elsif ($e =~ /\A[ ][ ]Sent[ ]date:[ ](.+)\z/) { }
6 66 elsif ($e =~ /\A[ ][ ]Subject:[ ](.+)\z/) { }
71 0 6 if ($v->{'recipient'})
88 42 24 if $gotmessage == 1
90 18 6 if ($v->{'diagnosis'}) { }
92 6 12 if ($e eq 'Message details:') { }
107 0 6 if $e eq $startingof->{'error'}[0]
108 6 0 unless $gotmessage
112 0 6 unless $recipients
116 6 0 unless $emailsteak->[1] =~ /^Subject:/m