Branch Coverage

blib/lib/Bot/Cobalt/IRC.pm
Criterion Covered Total %
branch 0 86 0.0


line true false branch
113 0 0 if (exists $p_cfg->opts->{'Networks'}{'-ALL'})
123 0 0 if defined $p_cfg->opts->{'Networks'}{$context}{'Enabled'} and $p_cfg->opts->{'Networks'}{$context}{'Enabled'} == 0
128 0 0 unless ($active_contexts)
148 0 0 if ($core->Servers->{$context})
149 0 0 if ($core->Servers->{$context}->has_irc)
167 0 0 unless (ref $thiscfg and &reftype($thiscfg) eq 'HASH' and keys %$thiscfg)
174 0 0 unless (defined $server)
182 0 0 $thiscfg->{'UseSSL'} ? :
183 0 0 $thiscfg->{'IPv6'} ? :
209 0 0 if defined $thiscfg->{'BindAddr'}
212 0 0 if defined $thiscfg->{'ServerPass'}
214 0 0 unless my $irc = 'POE::Component::IRC::State'->spawn(%spawn_opts)
228 0 0 if ($self->_spawn_for_context($context))
238 0 0 unless 'POE::Session'->create('heap', {'Context', $context}, 'object_states', [$self, ['_start', 'irc_001', 'irc_connected', 'irc_disconnected', 'irc_error', 'irc_socketerr', 'irc_chan_sync', 'irc_public', 'irc_msg', 'irc_notice', 'irc_ctcp_action', 'irc_kick', 'irc_mode', 'irc_topic', 'irc_invite', 'irc_nick', 'irc_join', 'irc_part', 'irc_quit']])
295 0 0 unless my $irc = delete $self->ircobjs->{$context}
337 0 0 if (defined $pcfg->opts->{'Networks'}{$context}{'NickServPass'})
435 0 0 unless (grep {$_ eq $casemap;} @valid_casemaps)
437 0 0 if ($charset and grep {$_ eq $charset;} @valid_casemaps)
450 0 0 if (my $umode = $thiscfg->{'Umodes'})
468 0 0 if (&irc_context($context))
480 0 0 if (&irc_context($context))
492 0 0 if (&irc_context($context))
511 0 0 ($cf_core->opts->{'NotifyOnSync'} //= 1) ? :
517 0 0 if exists $chan_h->{$chan} and &reftype($chan_h->{$chan}) eq 'HASH' and exists $chan_h->{$chan}{'notify_on_sync'}
519 0 0 if $notify
531 0 0 if matches_mask($mask, $src, $casemap)
576 0 0 if (eq_irc($me, $join->src_nick, $casemap))
601 0 0 if (eq_irc($me, $kick->src_nick, $casemap))
625 0 0 if ($mode_obj->is_umode)
647 0 0 if matches_mask($mask, $src, $casemap)
650 0 0 if ($self->flood->check($context, $src))
652 0 0 unless core()->auth->level($context, $nick)
675 0 0 if ($new eq $irc->nick_name)
700 0 0 if matches_mask($mask, $src, $casemap)
730 0 0 if (eq_irc($me, $part->src_nick, $casemap))
751 0 0 if matches_mask($mask, $src, $casemap)
762 0 0 if ($self->flood->check(@_))
770 0 0 if (my $cmd = $msg_obj->cmd) { }
0 0 elsif ($msg_obj->highlight) { }
772 0 0 &$floodchk($context, $src) ? :
778 0 0 &$floodchk($context, $src) ? :
847 0 0 if ($type eq 'core' or $type eq 'channels')
864 0 0 if $self->has_flood