Branch Coverage

blib/lib/Mojolicious/Plugin/HTMX.pm
Criterion Covered Total %
branch 19 38 50.0


line true false branch
49 0 0 unless eval { do { decode_json(_header(shift(), "Triggering-Event")) } }
66 0 0 if (my $value = $c->helpers->htmx->req->$helper)
127 0 0 if ($ext)
140 0 0 if ($value and $check)
141 0 0 if $value eq $check
152 2 1 @_ > 1 ? :
154 0 3 unless $location
156 2 1 if (ref $location eq "HASH")
167 0 2 unless $push_url
176 0 2 unless $redirect
190 0 2 unless $replace_url
199 0 16 unless $reswap
202 0 16 unless $is_reswap
211 0 2 unless $reselect
220 0 2 unless $retarget
229 6 4 @_ > 1 ? :
231 0 10 unless $trigger
235 6 4 if (ref $trigger eq "HASH")
239 1 9 if (ref $trigger eq "ARRAY")