Branch Coverage

blib/lib/Mojolicious/Plugin/Prometheus.pm
Criterion Covered Total %
branch 19 24 79.1


line true false branch
61 3 8 if $config->{'shm_key'}
64 65 1 unless $config->{$_}
69 1 10 if $config->{'duration_buckets'}
70 1 10 if $config->{'request_buckets'}
71 1 10 if $config->{'response_buckets'}
74 1 10 if $config->{'prometheus'}
165 21 1 if $scope eq "worker"
190 0 10 unless "IPC::ShareLite"->new("-key", $self->shm_key, "-create", 1, "-destroy", 0)
199 0 20 unless $server->isa("Mojo::Server::Daemon")
207 20 0 if $self->config->{'process_collector'}{'enabled'}
215 0 20 if $server->isa("Mojo::Server::Prefork")
222 10 0 if ($self->config->{'perl_collector'}{'enabled'})