Branch Coverage

blib/lib/Convos/Core/Connection.pm
Criterion Covered Total %
branch 1 98 1.0


line true false branch
60 0 36 $ENV{'CONVOS_DEBUG'} ? :
132 0 0 if ($$self{'stop'})
145 0 0 if $$self{'stop'}
162 0 0 unless $$self{'login'}
163 0 0 unless $$self{'name'}
198 0 0 $$self{'disable_tls'} ? :
201 0 0 if $$args{'password'}
203 0 0 $$self{'disable_tls'} ? :
208 0 0 if $error
238 0 0 if $nick and $self->_irc->nick ne $nick
266 0 0 unless (ref $message)
279 0 0 if ($error) { }
0 0 elsif ($$message{'command'} eq 'PRIVMSG') { }
0 0 elsif (my $method = $self->can('cmd_' . lc($$message{'command'}))) { }
309 0 0 if $$_[0] eq $self->name
0 0 unless $conversations
348 0 0 if $$message{'prefix'}
349 0 0 $is_private_message ? :
352 0 0 if ($$data{'nick'})
353 0 0 if ($$data{'nick'} eq $current_nick) { }
0 0 elsif ($is_private_message or $$data{'message'} =~ /\b$current_nick\b/) { }
357 0 0 if $is_private_message and $$data{'user'}
362 0 0 unless ($$data{'user'})
368 0 0 if ($$data{'message'} =~ s/\x{1}ACTION (.*)\x{1}/$1/)
372 0 0 $$message{'command'} eq 'CTCP_ACTION' ? :
386 0 0 if $part_of_conversation_list
436 0 0 $_[1] ? :
461 0 0 if $$whois{'host'}
603 0 0 if ($nick eq $self->_irc->nick) { }
624 0 0 if ($new_nick eq $self->_irc->nick)
667 0 0 if ($nick eq $self->_irc->nick)
685 0 0 if ($nick eq $self->_irc->nick) { }
731 0 0 if ($$self{'supress'}{'err_nicknameinuse'}++)
751 0 0 if ($channel =~ /^[#&]/)
795 0 0 unless my $channel = lc $$message{'params'}[1]
811 0 0 unless my $channel = lc $$message{'params'}[2]
815 0 0 $nick =~ s/^([\@~+*])// ? :
833 0 0 if $$self{'save_channels'}
846 0 0 if delete $$self{'save_channels'}
861 0 0 if ($target eq lc $self->_irc->nick) { }
896 0 0 if ($new_nick =~ /^[\w-]+$/) { }
915 0 0 if (my $key = $$message{'params'}[1])
930 0 0 if (my $filter = $$message{'params'}[0] || '') { }
945 0 0 if ($error =~ /SSL\d*_GET_SERVER_HELLO/) { }
973 0 0 if ($event eq 'server_message' and $$data{'status'} != 200)
986 0 0 if ($$data{'highlight'})
995 0 0 if ($$data{'target'}) { }
1014 0 0 unless my $ioloop = $$self{'_irc'}{'ioloop'}
1015 0 0 unless my $keepnick_tid = $$self{'keepnick_tid'}