Branch Coverage

blib/lib/Irssi/Bot/BasicBot/Pluggable.pm
Criterion Covered Total %
branch 0 134 0.0


line true false branch
33 0 0 unless $self->init
74 0 0 unless $method eq "tick"
78 0 0 if ($method eq 'tick') { }
84 0 0 if $logger->is_trace and @args
87 0 0 unless $self->module($who)->can($method)
89 0 0 if $logger->is_trace
118 0 0 if $logger->is_trace and $mess
127 0 0 if ($priority and $response)
129 0 0 if $logger->is_trace
131 0 0 if $response eq 1
142 0 0 if ($mess->{'reply_hook'}) { }
157 0 0 unless (ref $_[0])
166 0 0 if (ref $_[0]) { }
177 0 0 if ($args->{'channel'} ne "msg" and defined $args->{'address'})
182 0 0 $args->{'channel'} eq 'msg' ? :
184 0 0 unless (defined $who and defined $body)
205 0 0 defined $args->{'irc_command'} && $args->{'irc_command'} eq 'notice' ? :
211 0 0 if $args->{'network'}
216 0 0 if (defined $last_color)
219 0 0 if ((my $bcol = rindex($body, "\3")) > -1)
220 0 0 substr($body, $bcol + 1) =~ /^(\d{1,2}(?:,\d{1,2})?)/ ? :
222 0 0 if ($who eq '@@@ local user @@@') { }
235 0 0 unless $nick and $address
249 0 0 unless defined $return
252 0 0 if (not ref $return)
267 0 0 unless $nick and $address
279 0 0 if (lc $channel eq lc $self->nick) { }
290 0 0 if ($mess->{'channel'} ne "msg")
293 0 0 if ($mess->{'body'} =~ s/^(\Q$own_nick\E)\s*[:,-]?\s*//i)
298 0 0 if $mess->{'address'}
299 0 0 if ($mess->{'body'} =~ s/^(\Q$alt_nick\E)\s*[:,-]?\s*//i)
310 0 0 if ($mess->{'address'} and $mess->{'body'} =~ /^help/i)
311 0 0 unless $mess->{'body'} = $self->help($mess)
322 0 0 unless defined $return
325 0 0 if (not ref $return and length $return)
333 0 0 $self->{'server'} ? :
337 0 0 if $network
343 0 0 if $network
352 0 0 if (ref $_[0]) { }
360 0 0 unless $args->{'run'}
391 0 0 $rhandler =~ /::/ ? :
393 0 0 if $args
396 0 0 if $args->{'conn_tag'}
450 0 0 if ($mess->{'body'}) { }
457 0 0 if (my $module = $self->module($mess->{'body'})) { }
481 0 0 unless $module
482 0 0 if $self->module($module)
489 0 0 if lc $module eq "auth"
505 0 0 unless $m and ref $m
506 0 0 unless ref($m) =~ /\Q$module\E/
516 0 0 unless $module
517 0 0 if $self->module($module)
523 0 0 unless $module
524 0 0 unless $self->module($module)
542 0 0 unless ($xb->get('user_priority') || $xb->get('priority') || 0) <=> ($xa->get('user_priority') || $xa->get('priority') || 0)
547 0 0 if wantarray
556 0 0 unless $name
558 0 0 if $self->{'modules'}{lc $name}
564 0 0 unless $name
566 0 0 unless $self->{'modules'}{lc $name}
588 0 0 unless $self->{'conn_tag'}
590 0 0 unless my $server = Irssi::server_find_tag($self->{'conn_tag'})
591 0 0 unless my $ch = $server->channel_find($channel)
593 0 0 unless my $n = $ch->nick_find($nick)
600 0 0 unless $self->{'conn_tag'}
602 0 0 unless my $server = Irssi::server_find_tag($self->{'conn_tag'})
603 0 0 unless my $ch = $server->channel_find($channel)