Branch Coverage

lib/PEF/Front/WebSocket/QueueServer.pm
Criterion Covered Total %
branch 15 36 41.6


line true false branch
21 0 12 if $self->{'clients'}{$lcid}
24 1 11 if (defined $last_id and $last_id != 0)
26 1 0 if (@{$self->{'queue'};}) { }
27 1 0 if ($self->{'queue'}[0][0] <= $last_id) { }
34 1 1 if ($id_message > $last_id)
56 4 0 if ($id_message != 0)
60 4 0 if (not @{$self->{'queue'};} or $self->{'queue'}[$last_index][0] < $id_message) { }
65 0 0 if ($self->{'queue'}[0][0] > $id_message) { }
69 0 0 if ($self->{'queue'}[$i][0] < $id_message)
91 0 2 if (not %{$self->{'clients'};})
96 0 0 if ($self and not %{$self->{'clients'};})
127 12 0 if $queue->add_client($self, $last_id)
133 2 0 if $queue
169 2 0 if $client and $qo
203 19 0 if (my $cmd_sub = $cmd_switch{$cmd->{'command'}})
255 3 0 if $self
295 0 0 if ($reload_message)
297 0 0 unless (%$reload_message)