Branch Coverage

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


line true false branch
26 0 0 if (@_ == 0) { }
56 0 0 unless $s->is_virtual
68 0 0 if (defined $user and $user->id ne $s->id) { }
69 0 0 if ($user->is_virtual) { }
76 0 0 if (not $s->is_registered and $s->nick ne '*' and $s->user ne '*')
86 0 0 if (defined $s->{'_server'}->auth and ref $s->{'_server'}->auth eq 'CODE')
87 0 0 unless ($s->{'_server'}->auth->($nick, $s->user, $s->pass))
96 0 0 if (not $s->is_registered and $s->nick ne '*' and $s->user ne '*')
105 0 0 if (substr($mode, 0, 1) eq '+') { }
0 0 elsif (substr($mode, 0, 1) eq '-') { }
122 0 0 ref $_[0] eq 'Mojo::IRC::Server::Chinese::Channel' ? :
123 0 0 unless defined $channel
124 0 0 if (not $s->is_join_channel($channel->id)) { }
138 0 0 ref $_[0] eq 'Mojo::IRC::Server::Chinese::Channel' ? :
140 0 0 unless defined $channel
143 0 0 if ($channel->id eq $s->channel->[$i])
154 0 0 ref $_[0] eq 'Mojo::IRC::Server::Chinese::Channel' ? :
155 0 0 if (defined $cid) { }
156 0 0 &first(sub { $cid eq $_; } , @{$s->channel;}) ? :
167 0 0 if $user->id eq $s->id
168 0 0 if exists $unique{$user->id}
181 0 0 if $user->id eq $s->id
182 0 0 if exists $unique{$user->id}
193 0 0 if defined $channel
200 0 0 unless $s->is_join_channel
203 0 0 if defined $channel
209 0 0 if $s->is_virtual
212 0 0 defined $prefix ? :
217 0 0 defined $trail ? :
224 0 0 if $s->is_virtual
225 0 0 if $s->io->handle->peerhost eq '127.0.0.1'