| lib/PAGI/App/SSE/Pubsub.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 7 | 20 | 35.0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 149 | 1 | 0 | 0 | $history_size and defined $last_event_id |
| 152 | 0 | 0 | 0 | $event->{'id'} and $event->{'id'} eq $last_event_id |
| line | l | !l | condition |
|---|---|---|---|
| 36 | 1 | 0 | $args{'channel'} // "default" |
| 0 | 1 | $args{'history'} // 0 | |
| 0 | 1 | $args{'headers'} // [] | |
| 77 | 0 | 1 | $channel //= undef |
| 124 | 0 | 1 | $channels{$channel} //= {"clients", {}, "history", [], "history_size", $history_size} |
| 203 | 0 | 0 | $event->{'data'} // "" |
| 214 | 1 | 0 | $scope->{'headers'} // [] |