| line |
true |
false |
branch |
|
42
|
0 |
3 |
if $scope->{'type'} ne "websocket" |
|
68
|
2 |
3 |
if ($event->{'type'} eq 'websocket.receive') { } |
|
|
3 |
0 |
elsif ($event->{'type'} eq 'websocket.disconnect') { } |
|
72
|
0 |
2 |
if ($cmd eq 'message') { } |
|
|
0 |
2 |
elsif ($cmd eq 'join') { } |
|
|
0 |
2 |
elsif ($cmd eq 'leave') { } |
|
|
1 |
1 |
elsif ($cmd eq 'nick') { } |
|
|
0 |
1 |
elsif ($cmd eq 'list') { } |
|
|
1 |
0 |
elsif ($cmd eq 'rooms') { } |
|
79
|
0 |
0 |
$target_room ? : |
|
82
|
0 |
0 |
unless $user_rooms{$user_id}{$room} |
|
94
|
0 |
0 |
if (keys %rooms >= $max_rooms and not $rooms{$room}) { } |
|
108
|
0 |
0 |
if ($room and $user_rooms{$user_id}{$room}) |
|
118
|
0 |
1 |
if length $new_name > 20 |
|
122
|
1 |
0 |
if ($rooms{$room}{'users'}{$user_id}) |
|
133
|
0 |
0 |
if ($room and $rooms{$room}) |
|
188
|
0 |
3 |
unless $rooms{$room} |
|
202
|
3 |
0 |
if not keys %{$rooms{$room}{"users"};} |
|
209
|
0 |
6 |
unless $rooms{$room} |
|
215
|
3 |
0 |
if defined $exclude_id and $id eq $exclude_id |
|
222
|
0 |
0 |
if $@ |