Branch Coverage

blib/lib/Test/Mojo.pm
Criterion Covered Total %
branch 33 42 78.5


line true false branch
28 120 4 unless $app
119 34 0 if $self->tx->is_websocket
127 0 11 unless my $ok = $self->{'finished'}[0] == $code
180 2 45 @_ > 1 ? :
202 6 4 @_ > 1 ? :
251 33 4 unless my $app = shift()
253 1 3 @_ ? :
254 2 2 unless ref $app
256 0 0 @cfg ? :
0 2 $app->isa('Mojolicious') ? :
263 3 2 unless $self->success
283 0 53 unless $self->tx->is_websocket
336 0 8 unless my $e = $self->tx->res->dom->at($selector)
364 10 61 if (ref $value eq 'HASH') { }
365 2 8 exists $value->{'text'} ? :
367 2 8 unless ($type // "") eq $expect
371 57 4 if ($type // "") eq "text"
382 42 716 if ($tx->req->is_handshake)
387 0 42 unless $self->tx($tx)->tx->is_websocket
402 0 716 if not my $ok = !$err->{'message'} || $err->{'code'} and $err
407 1 64 unless my $e = (shift())->tx->res->dom->at(shift())