Branch Coverage

blib/lib/Mojo/Netdata/Collector/HTTP.pm
Criterion Covered Total %
branch 27 36 75.0


line true false branch
19 2 0 $netdata->update_every >= 10 ? :
0 2 $config->{'update_every'} ? :
22 0 2 if defined $config->{'insecure'}
23 0 2 if defined $config->{'connect_timeout'}
24 0 2 if defined $config->{'request_timeout'}
25 2 0 if $config->{'proxy'} // 1
30 0 2 ref $config->{'jobs'} eq 'HASH' ? :
32 8 2 ref $jobs[0] eq 'HASH' ? :
33 8 2 if $job
36 2 0 @{$self->jobs;} ? :
59 1 9 unless my $host = $url->host
62 8 1 unless $params->{'headers'}
63 1 8 if $params->{'via'}
72 1 8 if ($code_chart->dimension($dimension))
88 0 6 $code >= 200 && $code < 300 ? :
100 1 5 exists $params->{'body'} ? :
1 6 exists $params->{'form'} ? :
1 7 exists $params->{'json'} ? :