Branch Coverage

blib/lib/Mojo/IRC/Server/Chinese.pm
Criterion Covered Total %
branch 0 154 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]) { }
312 0 0 if substr($channel_name, 0, 1) ne '#'
316 0 0 if defined $c
318 0 0 if ($is_cover)
0 0 if (defined $c) { }
326 0 0 if ($user->is_virtual)
328 0 0 unless $nick
331 0 0 if defined $u
334 0 0 if (defined $u) { }
335 0 0 if ($u->nick =~ /\((\d+)\)$/) { }
344 0 0 if ($is_cover)
0 0 if (defined $u) { }
353 0 0 if ($user->id eq $s->user->[$i]->id)
357 0 0 if ($user->is_virtual) { }
372 0 0 if ($channel->id eq $s->channel->[$i]->id)
391 0 0 if 0 == grep({defined $p{$_};} keys %p)
392 0 0 if (wantarray) { }
393 0 0 &first(sub { $p{$_} ne $c->$_; } , grep({defined $p{$_};} keys %p)) ? :
396 0 0 &first(sub { $p{$_} ne $c->$_; } , grep({defined $p{$_};} keys %p)) ? :
403 0 0 if 0 == grep({defined $p{$_};} keys %p)
404 0 0 if (wantarray) { }
405 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 $_ eq 'name' ? :
0 0 &first(sub { $_ eq 'name' ? lc $p{$_} ne lc $c->$_ : $p{$_} ne $c->$_; } , grep({defined $p{$_};} keys %p)) ? :
426 0 0 if (defined $s->listen and ref $s->listen eq 'ARRAY') { }
429 0 0 $_->{'tls'} ? :
0 0 unless defined $_->{'port'}
451 0 0 if defined $s->clienthost
463 0 0 if (defined $s->auth and ref $s->auth eq 'CODE')
464 0 0 unless ($s->auth->($user->nick, $user->user, $user->pass))
488 0 0 if defined $_->last_active_time
489 0 0 if ($_->ping_count >= 3) { }
505 0 0 unless $s->ioloop->is_running