| blib/lib/Datastar/SSE.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 28 | 44 | 63.6 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 290 | 1 | 1 | 1 | &is_Mergemode($merge_mode) and $merge_mode ne "morph" |
| 404 | 1 | 2 | 0 | @signals and &is_HashRef($signals[$#signals]) |
| 411 | 0 | 1 | 2 | $signal and not ref $signal |
| 495 | 1 | 0 | 0 | &is_ArrayRef($script) and @$script |
| 531 | 0 | 0 | 3 | $attributes and &is_HashRef($attributes) |
| line | l | !l | condition |
|---|---|---|---|
| 201 | 0 | 0 | $headers ||= ["Content-Type", "text/event-stream", "Cache-Control", "no-cache", "Connection", "keep-alive", "Keep-Alive", "timeout=300, max=100000"] |
| 281 | 11 | 0 | $fragment ||= [] |
| 295 | 1 | 0 | $use_view_transition ||= 0 |
| 346 | 2 | 1 | $options ||= {} |
| 350 | 1 | 1 | delete $options->{'only_if_missing'} || 0 |
| 496 | 13 | 0 | $script ||= [] |
| 501 | 8 | 5 | $options ||= {} |
| 502 | 2 | 11 | delete $options->{'auto_remove'} // 1 |
| 503 | 6 | 7 | delete $options->{'attributes'} // [@execute_script_attributes] |
| 555 | 27 | 3 | $options ||= {} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 176 | 27 | 2 | 0 | $json ||= "JSON"->new->allow_blessed->convert_blessed |
| 181 | 0 | 0 | 0 | $json ||= "JSON"->new->allow_blessed->convert_blessed |
| 495 | 13 | 0 | 1 | $script or &is_ArrayRef($script) and @$script |