Branch Coverage

blib/lib/Net/Prometheus.pm
Criterion Covered Total %
branch 16 24 66.6


line true false branch
124 4 7 if (not $args{'disable_process_collector'} and my $process_collector = "Net::Prometheus::ProcessCollector"->new)
129 4 7 unless ($args{'disable_perl_collector'})
307 1 93 @results > 1 ? :
344 75 55 unless scalar @$labels
370 1 129 $value != $value ? :
130 1 defined $value ? :
433 0 1 unless $request->method eq "GET"
440 0 1 if length $request->uri->query
484 0 1 unless $method eq "GET"
491 0 1 if (defined $env->{'QUERY_STRING'})
547 0 0 unless my $listensock = "IO::Socket::IP"->new("LocalPort", $args{'port'}, "Type", Socket::SOCK_STREAM(), "Listen", 1, "ReuseAddr", 1)
553 0 0 if $args{'on_listen'}