Branch Coverage

blib/lib/Test/Mojo.pm
Criterion Covered Total %
branch 36 44 81.8


line true false branch
28 125 4 unless $app
119 34 0 if $self->tx->is_websocket
127 0 11 unless my $ok = $self->{'finished'}[0] == $code
183 2 45 @_ > 1 ? :
205 6 4 @_ > 1 ? :
254 36 4 unless my $app = shift()
256 1 3 @_ ? :
257 2 2 unless ref $app
259 0 0 @cfg ? :
0 2 $app->isa('Mojolicious') ? :
266 3 2 unless $self->success
290 0 53 unless $self->tx->is_websocket
401 0 8 unless my $e = $self->tx->res->dom->at($selector)
435 10 71 if (ref $value eq 'HASH') { }
436 2 8 exists $value->{'text'} ? :
438 2 8 unless ($type // "") eq $expect
442 67 4 if ($type // "") eq "text"
453 55 741 if ($tx->req->is_handshake)
458 1 54 unless $self->tx($tx)->tx->is_websocket
473 0 741 if not my $ok = !$err->{'message'} || $err->{'code'} and $err
485 53 16 if ($event) { }
512 1 64 unless my $e = (shift())->tx->res->dom->at(shift())