Branch Coverage

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


line true false branch
75 0 0 if $user->is_virtual
80 0 0 if ($pos != -1) { }
88 0 0 if ($pos != -1) { }
104 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 'KICK') { }
0 0 elsif ($msg->{'command'} eq 'INVITE') { }
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') { }
138 0 0 if $user->is_quit
139 0 0 defined $err ? :
0 0 defined $user->close_reason ? :
150 0 0 if (defined $user->search_user('user', $msg->{'params'}[0]))
159 0 0 if (not $user->is_registered and $user->nick ne '*' and $user->user ne '*')
167 0 0 if (defined $channel) { }
180 0 0 unless defined $channel
189 0 0 unless (defined $invite_user)
193 0 0 if (not defined $channel) { }
0 0 elsif (defined $channel) { }
197 0 0 if (not $user->is_join_channel($channel)) { }
0 0 elsif ($invite_user->is_join_channel($channel)) { }
224 0 0 if (substr($msg->{'params'}[0], 0, 1) eq '#') { }
228 0 0 unless (defined $channel)
236 0 0 if (defined $u) { }
238 0 0 if $u->is_away
247 0 0 if (substr($msg->{'params'}[0], 0, 1) eq '#') { }
251 0 0 unless (defined $channel)
252 0 0 if (defined $channel_mode and $channel_mode eq 'b') { }
0 0 elsif (defined $channel_mode and $channel_mode ne 'b') { }
266 0 0 if (defined $mode) { }
271 0 0 if (substr($msg->{'params'}[0], 0, 1) eq '#') { }
274 0 0 unless (defined $channel)
283 0 0 if (defined $u) { }
285 0 0 if ($u->is_join_channel)
287 0 0 if defined $last_channel
301 0 0 unless (defined $whois_user)
313 0 0 if $channel->mode =~ /s/
321 0 0 unless (defined $channel)
322 0 0 if (defined $msg->{'params'}[1]) { }
331 0 0 if ($msg->{'params'}[0]) { }
353 0 0 if substr($channel_name, 0, 1) ne '#'
357 0 0 if defined $c
359 0 0 if ($is_cover)
0 0 if (defined $c) { }
367 0 0 if ($user->is_virtual)
369 0 0 unless $nick
372 0 0 if defined $u
375 0 0 if (defined $u) { }
376 0 0 if ($u->nick =~ /\((\d+)\)$/) { }
385 0 0 if ($is_cover)
0 0 if (defined $u) { }
394 0 0 if ($user->id eq $s->user->[$i]->id)
398 0 0 if ($user->is_virtual) { }
413 0 0 if ($channel->id eq $s->channel->[$i]->id)
432 0 0 if 0 == grep({defined $p{$_};} keys %p)
433 0 0 if (wantarray) { }
434 0 0 &first(sub { $p{$_} ne $c->$_; } , grep({defined $p{$_};} keys %p)) ? :
437 0 0 &first(sub { $p{$_} ne $c->$_; } , grep({defined $p{$_};} keys %p)) ? :
444 0 0 if 0 == grep({defined $p{$_};} keys %p)
445 0 0 if (wantarray) { }
446 0 0 $_ eq 'name' ? :
0 0 &first(sub { $_ eq 'name' ? lc $p{$_} ne lc $c->$_ : $p{$_} ne $c->$_; } , grep({defined $p{$_};} keys %p)) ? :
449 0 0 $_ eq 'name' ? :
0 0 &first(sub { $_ eq 'name' ? lc $p{$_} ne lc $c->$_ : $p{$_} ne $c->$_; } , grep({defined $p{$_};} keys %p)) ? :
467 0 0 if (defined $s->listen and ref $s->listen eq 'ARRAY') { }
470 0 0 $_->{'tls'} ? :
0 0 unless defined $_->{'port'}
492 0 0 if defined $s->clienthost
504 0 0 if (defined $s->auth and ref $s->auth eq 'CODE')
505 0 0 unless ($s->auth->($user->nick, $user->user, $user->pass))
517 0 0 if (defined $s->motd_path and -f $s->motd_path and -s $s->motd_path)
519 0 0 unless open my $motd_fd, $s->motd_path
527 0 0 if $@
541 0 0 if defined $_->last_active_time
542 0 0 if ($_->ping_count >= 3) { }
558 0 0 unless $s->ioloop->is_running