Branch Coverage

blib/lib/Mojo/IRC.pm
Criterion Covered Total %
branch 44 66 66.6


line true false branch
52 21 4 unless defined $server
53 1 3 if $old and $old eq $server
55 3 0 unless $self->{'stream_id'}
67 0 20 unless ($host)
71 0 20 if ($self->{'stream_id'})
76 1 19 if ($self->local_address)
79 0 20 if (my $tls = $self->tls)
81 0 0 if $tls->{'ca'}
84 0 0 if $tls->{'insecure'}
101 1 18 if ($err)
109 0 14 unless $self
118 0 0 unless $self
119 0 0 unless $self->ioloop
130 1 17 if length $self->pass
155 0 3 if (my $tid = delete $self->{'ping_tid'})
159 2 1 if ($self->{'stream'}) { }
0 1 elsif ($cb) { }
165 1 1 if $cb
180 162 36 unless $self->has_subscribers($event)
189 0 0 unless @_
196 59 7 ref $_[-1] eq 'CODE' ? :
201 66 0 if (ref $self->{'stream'}) { }
217 0 1 unless $ts
239 6 2 if (lc $old_nick eq lc $self->nick)
248 1 49 if ($message->{'params'}[0] =~ /Ident broken.*QUOTE PASS (\S+)/)
265 5 49 unless $params->[$i] =~ /([A-Z]+)=?(\S*)/
296 0 18 unless my $ioloop = $self->ioloop
300 14 4 if $sid
301 1 17 if $tid
312 0 142 if $self->{'track_any'}
320 130 12 unless $event =~ /^(ctcp|err)_/
337 0 142 unless my $cmd = $msg->{'command'}
338 81 61 if $cmd =~ /^\d+$/