Branch Coverage

blib/lib/Datastar/SSE.pm
Criterion Covered Total %
branch 50 58 86.2


line true false branch
280 1 11 unless $fragment
282 9 2 unless (&is_ArrayRef($fragment))
286 1 10 if (my $selector = delete $options->{'selector'})
289 3 8 if (my $merge_mode = delete $options->{'merge_mode'})
290 1 2 if (&is_Mergemode($merge_mode) and $merge_mode ne "morph")
294 1 10 if (my $use_view_transition = delete $options->{'use_view_transition'})
296 1 0 if ($use_view_transition)
301 1 14 &is_ScalarRef($_) ? :
345 1 3 unless $signals
349 2 1 if (exists $options->{'only_if_missing'})
353 3 0 if (ref $signals)
377 1 1 unless $selector
404 0 3 if (@signals and &is_HashRef($signals[$#signals]))
411 2 1 if ($signal and not ref $signal)
414 1 2 if (&is_ArrayRef($signal))
418 1 2 unless @sig
495 1 0 unless $script or &is_ArrayRef($script) and @$script
498 11 2 unless (&is_ArrayRef($script))
504 1 12 unless ($auto_remove)
509 4 9 if (&_encode_json($attributes) ne &_encode_json([@execute_script_attributes]))
511 4 4 &is_HashRef($_) ? :
515 1 14 &is_ScalarRef($_) ? :
530 10 3 if &is_ArrayRef($attributes)
531 0 3 unless $attributes and &is_HashRef($attributes)
536 3 2 $value ? :
549 0 30 unless $event
550 0 30 unless &is_Datastar($event)
556 0 30 unless &is_HashRef($options)
566 2 2 shift() ? :