Condition Coverage

blib/lib/Bot/Cobalt/IRC.pm
Criterion Covered Total %
condition 0 83 0.0


and 2 conditions

line l !l condition
214 0 0 logger()->error("IRC component spawn() for $context failed") and return 4
238 0 0 logger()->error("Session creation failed for context $context") and return
295 0 0 logger()->error("ircplug_disconnect called for nonexistant context $context") and return 4

and 3 conditions

line !l l&&!r l&&r condition
123 0 0 0 defined $p_cfg->opts->{'Networks'}{$context}{'Enabled'} and $p_cfg->opts->{'Networks'}{$context}{'Enabled'} == 0
167 0 0 0 ref $thiscfg and &reftype($thiscfg) eq 'HASH'
0 0 0 ref $thiscfg and &reftype($thiscfg) eq 'HASH' and keys %$thiscfg
437 0 0 0 $charset and grep {$_ eq $charset;} @valid_casemaps
517 0 0 0 exists $chan_h->{$chan} and &reftype($chan_h->{$chan}) eq 'HASH'
0 0 0 exists $chan_h->{$chan} and &reftype($chan_h->{$chan}) eq 'HASH' and exists $chan_h->{$chan}{'notify_on_sync'}

or 2 conditions

line l !l condition
179 0 0 $thiscfg->{'ServerPort'} || 6667
180 0 0 $thiscfg->{'Nickname'} || 'cobalt2'
200 0 0 $thiscfg->{'Username'} // 'cobalt'
0 0 $thiscfg->{'Realname'} // 'http://cobaltirc.org'
321 0 0 $ccfg->opts->{'StonedCheck'} || 300
322 0 0 $ccfg->opts->{'ReconnectDelay'} || 60
333 0 0 $ccfg->opts->{'NickRegainDelay'} // 30
346 0 0 core()->cfg->channels->context($context) // {}
350 0 0 $chanhash->{$chan}{'password'} // ''
360 0 0 $ccfg->opts->{'Chan_RetryAfterKick'} // 1
0 0 $ccfg->opts->{'Chan_RejoinDelay'} // 5
0 0 $ccfg->opts->{'Chan_NickServDelay'} // 1
0 0 $ccfg->opts->{'Chan_RetryAfterBan'} // 60
365 0 0 'Bot::Cobalt::IRC'->VERSION // 'vcs'
404 0 0 $irc->isupport('MODES') // 4
405 0 0 $irc->isupport('MAXTARGETS') // 4
415 0 0 $irc->isupport('CASEMAPPING') || 'rfc1459'
436 0 0 $irc->isupport('CHARSET') || ''
511 0 0 $cf_core->opts->{'NotifyOnSync'} //= 1
512 0 0 core()->cfg->channels->context($context) || {}
895 0 0 $corecf->opts->{'FloodIgnore'} || 20
924 0 0 core()->get_channels_cfg($context) // {}
926 0 0 core()->get_irc_obj($context) || (next CONTEXT)
931 0 0 $chanscf->{$channel}{'password'} // ''
945 0 0 $corecf->opts->{'Chan_RetryAfterKick'} // 1
0 0 $corecf->opts->{'Chan_RejoinDelay'} // 5
0 0 $corecf->opts->{'Chan_NickServDelay'} // 1
0 0 $corecf->opts->{'Chan_RetryAfterBan'} // 60

or 3 conditions

line l !l&&r !l&&!r condition
847 0 0 0 $type eq 'core' or $type eq 'channels'