Branch Coverage

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


line true false branch
127 4 7 if (not $args{'disable_process_collector'} and my $process_collector = "Net::Prometheus::ProcessCollector"->new)
132 4 7 unless ($args{'disable_perl_collector'})
286 1 121 @results > 1 ? :
319 103 58 unless scalar @$labels
342 1 160 $value != $value ? :
161 1 defined $value ? :
399 0 1 unless $request->method eq "GET"
406 0 1 if length $request->uri->query
447 0 1 unless $method eq "GET"
454 0 1 if (defined $env->{'QUERY_STRING'})
507 0 0 unless my $listensock = "IO::Socket::IP"->new("LocalPort", $args{'port'}, "Type", Socket::SOCK_STREAM(), "Listen", 1, "ReuseAddr", 1)
513 0 0 if $args{'on_listen'}