Branch Coverage

blib/lib/POE/Component/IRC/Plugin/PlugMan.pm
Criterion Covered Total %
branch 27 56 48.2


line true false branch
17 0 5 if $] < 5.008007
22 0 4 if @_ & 1
41 2 0 $self->load(@cmd) ? :
46 1 0 $self->unload(@cmd) ? :
51 2 0 $self->reload(@cmd) ? :
57 0 0 @aliases ? :
65 0 0 @aliases ? :
89 1 5 unless $command and $self->_authed($who, $channel)
94 5 0 if (defined $self->{'commands'}{$cmd})
110 0 0 unless $self->_authed($who, $channel)
112 0 0 if (defined $self->{'commands'}{$cmd})
125 0 7 unless $desc and $plugin
129 6 1 if (not ref $plugin) { }
130 6 0 unless $module =~ /\.pm$/
134 0 6 if ($@)
142 0 6 unless $object
153 7 0 if ($return) { }
167 0 6 unless $desc
170 0 6 unless $plugin
185 0 48 if $@
194 0 3 unless defined $desc
197 0 3 unless $plugin_state
198 0 3 if $self->{'debug'}
199 0 3 unless $self->unload($desc)
201 0 3 if $self->{'debug'}
202 0 3 unless $self->load($desc, $plugin_state->{'plugin'}, @{$$plugin_state{'args'};})
214 3 3 if $self->{'auth_sub'}
215 3 0 if matches_mask($self->{'botowner'}, $who)