Branch Coverage

blib/lib/Bot/Cobalt/Plugin/PluginMgr.pm
Criterion Covered Total %
branch 0 40 0.0


line true false branch
55 0 0 if (core()->auth->level($context, $nick) < $required_lev) { }
58 0 0 unless ($op and grep {$_ eq $op;} 'load', 'unload', 'reload', 'list')
69 0 0 if ($self->can($method)) { }
78 0 0 if defined $resp
115 0 0 if ($str and length $str > 300 || !@loaded)
131 0 0 if (not $alias) { }
0 0 elsif (not $plug_obj) { }
0 0 elsif (core()->State->{'NonReloadable'}{$alias}) { }
180 0 0 unless defined $alias
183 0 0 unless $plug_obj
188 0 0 unless 'Bot::Cobalt::Core::Loader'->is_reloadable($plug_obj)
195 0 0 if (core()->plugin_del($alias)) { }
222 0 0 unless defined $alias
226 0 0 if grep {$_ eq $alias;} keys %{core()->plugin_list;}
228 0 0 if defined $module
233 0 0 unless ($plugin_cfg = core()->cfg->plugins->plugin($alias))
259 0 0 if ($err)
274 0 0 if (my $loaded = core()->plugin_add($alias, $obj)) { }
275 0 0 unless ('Bot::Cobalt::Core::Loader'->is_reloadable($obj))
280 0 0 $obj->can('VERSION') ? :