Branch Coverage

blib/lib/Mail/IspMailGate/Filter/Banner.pm
Criterion Covered Total %
branch 0 44 0.0


line true false branch
85 0 0 unless (defined $banner)
96 0 0 unless (defined $$parser{'_banner_body'})
102 0 0 if ($$parser{'_banner_head_found'})
113 0 0 if ($$parser{'_banner_html_found'})
135 0 0 unless ($type)
140 0 0 unless (defined $mult)
144 0 0 if ($mult) { }
146 0 0 exists $$attr{'globHead'} ? :
151 0 0 if ($type eq 'multipart/alternative') { }
159 0 0 unless ($part)
168 0 0 if ($type =~ m[^text/(html|plain)$])
171 0 0 if (defined $file)
175 0 0 if (ref $file) { }
179 0 0 unless (-f $file)
184 0 0 unless (open $fh, "<$file")
190 0 0 if (defined $banner)
194 0 0 if ($path and not open($io, "+<$path") or not defined($contents = <$io>) or not seek($io, 0, 0) or not print($io $self->$method($banner, $contents)) or not close $io)
223 0 0 if (lc $tag eq 'body' and defined $$self{'_banner_body'}) { }
0 0 elsif (lc $tag eq 'html') { }
227 0 0 if (defined $$self{'_banner_html'})
236 0 0 if (lc $tag eq 'head')
238 0 0 if (defined $$self{'_banner_head'})