Branch Coverage

blib/lib/Test2/MojoX.pm
Criterion Covered Total %
branch 29 54 53.7


line true false branch
44 3 1 unless $app
127 0 2 ref $check ? :
194 2 1 if ($self->tx->is_websocket) { }
211 1 1 unless my $ok = $self->{'finished'}[0] == $code
294 2 1 @_ > 1 ? :
303 2 1 @_ > 1 ? :
332 0 2 @_ > 1 ? :
342 0 2 @_ > 1 ? :
352 0 2 @_ > 1 ? :
362 2 1 @_ > 1 ? :
412 10 0 unless my $app = shift()
414 0 0 @_ ? :
415 0 0 unless ref $app
416 0 0 unless $app->isa('Mojolicious')
417 0 0 @args ? :
422 0 0 unless $self->success
449 13 1 if ($self->tx->is_websocket) { }
474 0 2 ref $check ? :
529 0 0 unless my $e = $self->tx->res->dom->at($selector)
546 0 2 if (ref $value eq 'HASH') { }
547 0 0 exists $value->{'text'} ? :
549 0 0 if ($type // '') ne $expect
553 2 0 if ($type // '') eq 'text'
567 15 69 if ($tx->req->is_handshake) { }
572 1 14 unless $self->tx($tx)->tx->is_websocket
589 0 69 if not my $ok = !$err->{'message'} || $err->{'code'} and $err
598 2 6 unless my $e = (shift())->tx->res->dom->at(shift())