Branch Coverage

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


line true false branch
74 0 0 if $user->is_virtual
79 0 0 if ($pos != -1) { }
87 0 0 if ($pos != -1) { }
103 0 0 if ($msg->{'command'} eq 'CAP') { }
0 0 elsif ($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') { }
135 0 0 if $user->is_quit
136 0 0 defined $err ? :
0 0 defined $user->close_reason ? :
147 0 0 if (defined $user->search_user('user', $msg->{'params'}[0]))
156 0 0 if (not $user->is_registered and $user->nick ne '*' and $user->user ne '*')
164 0 0 if (defined $channel) { }
177 0 0 unless defined $channel
195 0 0 if (substr($msg->{'params'}[0], 0, 1) eq '#') { }
199 0 0 unless (defined $channel)
207 0 0 if (defined $u) { }
209 0 0 if $u->is_away
218 0 0 if (substr($msg->{'params'}[0], 0, 1) eq '#') { }
222 0 0 unless (defined $channel)
223 0 0 if (defined $channel_mode and $channel_mode eq 'b') { }
0 0 elsif (defined $channel_mode and $channel_mode ne 'b') { }
237 0 0 if (defined $mode) { }
242 0 0 if (substr($msg->{'params'}[0], 0, 1) eq '#') { }
245 0 0 unless (defined $channel)
254 0 0 if (defined $u) { }
256 0 0 if ($u->is_join_channel)
258 0 0 if defined $last_channel
272 0 0 if $channel->mode =~ /s/
280 0 0 unless (defined $channel)
281 0 0 if (defined $msg->{'params'}[1]) { }
290 0 0 if ($msg->{'params'}[0]) { }
311 0 0 if substr($channel_name, 0, 1) ne '#'
315 0 0 if defined $c
317 0 0 if ($is_cover)
0 0 if (defined $c) { }
325 0 0 if ($user->is_virtual)
327 0 0 unless $nick
330 0 0 if defined $u
333 0 0 if (defined $u) { }
334 0 0 if ($u->nick =~ /\((\d+)\)$/) { }
343 0 0 if ($is_cover)
0 0 if (defined $u) { }
352 0 0 if ($user->id eq $s->user->[$i]->id)
356 0 0 if ($user->is_virtual) { }
371 0 0 if ($channel->id eq $s->channel->[$i]->id)
390 0 0 if 0 == grep({defined $p{$_};} keys %p)
391 0 0 if (wantarray) { }
392 0 0 &first(sub { $p{$_} ne $c->$_; } , grep({defined $p{$_};} keys %p)) ? :
395 0 0 &first(sub { $p{$_} ne $c->$_; } , grep({defined $p{$_};} keys %p)) ? :
402 0 0 if 0 == grep({defined $p{$_};} keys %p)
403 0 0 if (wantarray) { }
404 0 0 $_ eq 'name' ? :
0 0 &first(sub { $_ eq 'name' ? lc $p{$_} ne lc $c->$_ : $p{$_} ne $c->$_; } , grep({defined $p{$_};} keys %p)) ? :
407 0 0 $_ eq 'name' ? :
0 0 &first(sub { $_ eq 'name' ? lc $p{$_} ne lc $c->$_ : $p{$_} ne $c->$_; } , grep({defined $p{$_};} keys %p)) ? :
425 0 0 if (defined $s->listen and ref $s->listen eq 'ARRAY') { }
446 0 0 if defined $s->clienthost
458 0 0 if (defined $s->auth and ref $s->auth eq 'CODE')
459 0 0 unless ($s->auth->($user->nick, $user->user, $user->pass))
483 0 0 if defined $_->last_active_time
484 0 0 if ($_->ping_count >= 3) { }
500 0 0 unless $s->ioloop->is_running