Branch Coverage

blib/lib/Mail/SpamAssassin/PluginHandler.pm
Criterion Covered Total %
branch 21 42 50.0


line true false branch
78 0 5148 unless ($package =~ /^(?:\w+::){0,10}\w+$/)
88 2786 78572 if (ref $old_plugin eq $package)
95 0 2362 if ($path) { }
96 0 0 unless ($path =~ /^\S+\.pm/i)
127 0 2362 unless ($ret)
128 0 0 if ($silent) { }
129 0 0 if ($@) { }
0 0 elsif ($!) { }
133 0 0 if ($@) { }
0 0 elsif ($!) { }
141 0 2362 if ($@ or not $plugin)
145 2362 0 if ($plugin)
170 1245 573 unless (exists $self->{'cbs'}{$subname})
177 1016 35514 if (defined $methodref)
204 1163 4413 unless (exists $self->{'cbs'}{$subname})
205 531 632 unless $self->have_callback($subname)
216 0 4866 unless (eval { do { $ret = &$methodref($plugin, @_); 1 } })
217 0 0 $@ ne '' ? :
221 4437 429 if (defined $ret)
224 4211 226 if $ret or not defined $overallret
227 0 4866 if ($plugin->{'_inhibit_further_callbacks'})