Branch Coverage

blib/lib/Mojolicious/Plugin/Status.pm
Criterion Covered Total %
branch 29 50 58.0


line true false branch
53 2 0 if (keys %$connections) { }
57 0 2 if $repeat++
64 2 0 if (my $req = $conn->{'request'}) { }
65 0 2 $req->{'finished'} ? :
69 1 1 if $req->{'query'}
70 0 2 if $req->{'status'}
72 2 0 $active ? :
89 1 8 if ($c->param('reset'))
113 0 64 unless my $stream = 'Mojo::IOLoop'->stream($id)
126 0 64 $tx->is_websocket ? :
127 0 64 if $req->is_secure
146 0 64 unless my $worker = $_->{'workers'}{$$}
149 0 64 if ($code > 499) { }
0 64 elsif ($code > 399) { }
2 62 elsif ($code > 299) { }
62 0 elsif ($code > 199) { }
0 0 elsif ($code) { }
169 0 64 unless my $conn = $_->{'workers'}{$$}{'connections'}{$id}
170 0 64 unless my $req = $conn->{'request'}
201 1 7 if $req->{'query'}
202 8 0 if $req->{'status'}
213 0 2 unless $server->isa('Mojo::Server::Daemon')
227 0 2 if $server->isa('Mojo::Server::Prefork')
245 1 0 if $_->{'workers'}{$$}
258 63 1 if $map->writer->fetch->{'workers'}{$$}{'connections'}{$id}