Branch Coverage

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


line true false branch
54 2 0 if (keys %$connections) { }
58 0 2 if $repeat++
65 2 0 if (my $req = $conn->{'request'}) { }
66 0 2 $req->{'finished'} ? :
70 1 1 if $req->{'query'}
71 0 2 if $req->{'status'}
73 2 0 $active ? :
90 1 8 if ($c->param('reset'))
114 0 64 unless my $stream = 'Mojo::IOLoop'->stream($id)
127 0 64 $tx->is_websocket ? :
128 0 64 if $req->is_secure
147 0 64 unless my $worker = $_->{'workers'}{$$}
150 0 64 if ($code > 499) { }
0 64 elsif ($code > 399) { }
2 62 elsif ($code > 299) { }
62 0 elsif ($code > 199) { }
0 0 elsif ($code) { }
170 0 64 unless my $conn = $_->{'workers'}{$$}{'connections'}{$id}
171 0 64 unless my $req = $conn->{'request'}
202 1 7 if $req->{'query'}
203 8 0 if $req->{'status'}
214 0 2 unless $server->isa('Mojo::Server::Daemon')
228 0 2 if $server->isa('Mojo::Server::Prefork')
246 1 0 if $_->{'workers'}{$$}
259 63 1 if $map->writer->fetch->{'workers'}{$$}{'connections'}{$id}