Branch Coverage

blib/lib/Postfix/ContentFilter.pm
Criterion Covered Total %
branch 20 36 55.5


line true false branch
24 0 2 if ($options and $$options{'parser'})
39 2 2 if defined $$self{'parser'} and not defined $ptype
43 2 0 if (my $ent = $$parsers{$ptype}) { }
61 2 0 blessed $class ? :
66 0 2 unless ref $coderef eq 'CODE'
68 0 2 unless ref $handle eq 'GLOB'
74 1 1 if ($module eq 'Mail::Message') { }
1 0 elsif ($module eq 'MIME::Parser') { }
75 0 1 unless $entity = $parser->read($handle)
78 0 1 unless $entity = $parser->parse($handle)
87 0 0 if ($module eq 'Mail::Message') { }
0 0 elsif ($module eq 'MIME::Parser') { }
95 0 2 unless blessed $entity and $entity->isa($$self{'entity'})
100 0 2 if ${^TAINT}
112 1 1 if ($module eq 'Mail::Message') { }
1 0 elsif ($module eq 'MIME::Parser') { }
130 1 1 if ($module eq 'Mail::Message') { }
1 0 elsif ($module eq 'MIME::Parser') { }