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) { }
54 0 0 unless $s->is_virtual
65 0 0 if (defined $user and $user->id ne $s->id) { }
66 0 0 if ($user->is_virtual) { }
73 0 0 if (not $s->is_registered and $s->nick ne '*' and $s->user ne '*')
83 0 0 if (defined $s->{'_server'}->auth and ref $s->{'_server'}->auth eq 'CODE')
84 0 0 unless ($s->{'_server'}->auth->($nick, $s->user, $s->pass))
93 0 0 if (not $s->is_registered and $s->nick ne '*' and $s->user ne '*')
102 0 0 if (substr($mode, 0, 1) eq '+') { }
0 0 elsif (substr($mode, 0, 1) eq '-') { }
119 0 0 ref $_[0] eq 'Mojo::IRC::Server::Chinese::Channel' ? :
120 0 0 unless defined $channel
121 0 0 if (not $s->is_join_channel($channel->id)) { }
135 0 0 ref $_[0] eq 'Mojo::IRC::Server::Chinese::Channel' ? :
137 0 0 unless defined $channel
140 0 0 if ($channel->id eq $s->channel->[$i])
151 0 0 ref $_[0] eq 'Mojo::IRC::Server::Chinese::Channel' ? :
152 0 0 if (defined $cid) { }
153 0 0 &first(sub { $cid eq $_; } , @{$s->channel;}) ? :
164 0 0 if $user->id eq $s->id
165 0 0 if exists $unique{$user->id}
178 0 0 if $user->id eq $s->id
179 0 0 if exists $unique{$user->id}
190 0 0 if defined $channel
197 0 0 unless $s->is_join_channel
200 0 0 if defined $channel
206 0 0 if $s->is_virtual
209 0 0 defined $prefix ? :
214 0 0 defined $trail ? :
221 0 0 if $s->is_virtual
222 0 0 if $s->io->handle->peerhost eq '127.0.0.1'