Branch Coverage

blib/lib/Plugin/Simple.pm
Criterion Covered Total %
branch 39 42 92.8


line true false branch
20 2 8 $opts{'sub_name'} ? :
41 3 3 if ($item) { }
42 2 1 if (not $item =~ /::$/) { }
82 9 33 if ($plugin =~ /(.*)\W(\w+)\.pm/) { }
0 33 elsif ($plugin =~ /^(\w+)\.pm$/) { }
93 41 1 if ($loaded)
98 2 10 if ref $_[0]
102 1 11 if ($_[0] and $_[0] eq 'can') { }
112 1 11 if (@_)
120 10 1 if ($item)
121 9 1 if ($item =~ /(?:\.pm|\.pl)/) { }
123 8 1 if (-e $abs_path)
131 2 9 unless (@plugins)
134 0 3 if (not $plugins[0] and $self->{'default'})
137 3 8 unless ($plugins[0])
138 2 1 if ($item) { }
149 3 5 if ($can)
153 3 1 if ($mod->can($sub))
157 2 1 if $can_count == @$can
159 3 0 wantarray ? :
162 2 3 wantarray ? :