Branch Coverage

blib/lib/Mojo/IRC/Server.pm
Criterion Covered Total %
branch 0 140 0.0


line true false branch
70 0 0 if $user->is_virtual
85 0 0 if ($msg->{'command'} eq 'PASS') { }
0 0 elsif ($msg->{'command'} eq 'NICK') { }
0 0 elsif ($msg->{'command'} eq 'USER') { }
0 0 elsif ($msg->{'command'} eq 'JOIN') { }
0 0 elsif ($msg->{'command'} eq 'PART') { }
0 0 elsif ($msg->{'command'} eq 'PING') { }
0 0 elsif ($msg->{'command'} eq 'PONG') { }
0 0 elsif ($msg->{'command'} eq 'MODE') { }
0 0 elsif ($msg->{'command'} eq 'PRIVMSG') { }
0 0 elsif ($msg->{'command'} eq 'QUIT') { }
0 0 elsif ($msg->{'command'} eq 'WHO') { }
0 0 elsif ($msg->{'command'} eq 'WHOIS') { }
0 0 elsif ($msg->{'command'} eq 'LIST') { }
0 0 elsif ($msg->{'command'} eq 'TOPIC') { }
0 0 elsif ($msg->{'command'} eq 'AWAY') { }
116 0 0 if $user->is_quit
117 0 0 defined $err ? :
0 0 defined $user->close_reason ? :
128 0 0 if (defined $user->search_user('user', $msg->{'params'}[0]))
137 0 0 if (not $user->is_registered and $user->nick ne '*' and $user->user ne '*')
147 0 0 if (defined $channel) { }
160 0 0 unless defined $channel
178 0 0 if (substr($msg->{'params'}[0], 0, 1) eq '#') { }
182 0 0 unless (defined $channel)
190 0 0 if (defined $u) { }
192 0 0 if $u->is_away
201 0 0 if (substr($msg->{'params'}[0], 0, 1) eq '#') { }
205 0 0 unless (defined $channel)
206 0 0 if (defined $channel_mode and $channel_mode eq 'b') { }
0 0 elsif (defined $channel_mode and $channel_mode ne 'b') { }
220 0 0 if (defined $mode) { }
225 0 0 if (substr($msg->{'params'}[0], 0, 1) eq '#') { }
228 0 0 unless (defined $channel)
237 0 0 if (defined $u) { }
239 0 0 if ($u->is_join_channel)
241 0 0 if defined $last_channel
255 0 0 if $channel->mode =~ /s/
263 0 0 unless (defined $channel)
264 0 0 if (defined $msg->{'params'}[1]) { }
273 0 0 if ($msg->{'params'}[0]) { }
293 0 0 if substr($channel_name, 0, 1) ne '#'
297 0 0 if defined $c
299 0 0 if ($is_cover)
0 0 if (defined $c) { }
307 0 0 if ($user->is_virtual)
309 0 0 unless $nick
312 0 0 if defined $u
315 0 0 if (defined $u) { }
316 0 0 if ($nick =~ /\((\d+)\)$/) { }
326 0 0 if ($is_cover)
0 0 if (defined $u) { }
335 0 0 if ($user->id eq $s->user->[$i]->id)
339 0 0 if ($user->is_virtual) { }
354 0 0 if ($channel->id eq $s->channel->[$i]->id)
373 0 0 if 0 == grep({defined $p{$_};} keys %p)
374 0 0 if (wantarray) { }
375 0 0 &first(sub { $p{$_} ne $c->$_; } , grep({defined $p{$_};} keys %p)) ? :
378 0 0 &first(sub { $p{$_} ne $c->$_; } , grep({defined $p{$_};} keys %p)) ? :
385 0 0 if 0 == grep({defined $p{$_};} keys %p)
386 0 0 if (wantarray) { }
387 0 0 $_ eq 'name' ? :
0 0 &first(sub { $_ eq 'name' ? lc $p{$_} ne lc $c->$_ : $p{$_} ne $c->$_; } , grep({defined $p{$_};} keys %p)) ? :
390 0 0 $_ eq 'name' ? :
0 0 &first(sub { $_ eq 'name' ? lc $p{$_} ne lc $c->$_ : $p{$_} ne $c->$_; } , grep({defined $p{$_};} keys %p)) ? :
408 0 0 if (defined $s->listen and ref $s->listen eq 'ARRAY') { }
429 0 0 if defined $s->clienthost
449 0 0 if defined $_->last_active_time
450 0 0 if ($_->ping_count >= 3) { }
465 0 0 unless $s->ioloop->is_running