Branch Coverage

blib/lib/WWW/Mechanize/Pluggable.pm
Criterion Covered Total %
branch 25 38 65.7


line true false branch
138 11 11 if ($plugin->can('import'))
139 0 11 if (exists $plugin_args{$plugin_name}) { }
184 12 12 if ($plugin->can('init'))
229 12 0 unless defined $mech_class
252 12 10 if defined $mech
283 1 0 if defined $$self{$which}{$method}
321 10 1 if defined $method
341 0 11 if $AUTOLOAD =~ /DESTROY/
354 1 10 if (scalar @_ == 0 or not defined $_[0] or not ref $_[0])
355 1 0 $_[0] eq $class ? :
358 1 10 if $call_type
367 0 10 if (my $pre_hook = $$self{'PreHooks'}{$plain_sub})
375 10 0 unless ($skip)
376 0 10 if (wantarray) { }
378 0 0 if $@
382 3 7 if $@
385 0 7 if (my $post_hook = $$self{'PostHooks'}{$plain_sub})
391 0 7 wantarray ? :
416 0 1 if $@