blib/lib/Mojo/Netdata/Collector/HTTP.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 16 | 29 | 55.1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
88 | 0 | 6 | 0 | $code >= 200 && $code < 300 |
line | l | !l | condition |
---|---|---|---|
25 | 0 | 2 | $config->{'proxy'} // 1 |
27 | 0 | 2 | $config->{'concurrency'} || 4 |
61 | 2 | 7 | $defaults->{'headers'} || {} |
67 | 0 | 9 | $defaults->{'log_level'} || 'debug' |
86 | 6 | 0 | $tx->res->code // 0 |
87 | 0 | 6 | $err || {'code', $code} |
102 | 1 | 7 | $params->{'method'} || 'GET' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
26 | 0 | 2 | 0 | $config->{'user_agent'} || "Mojo-Netdata/$VERSION (Perl)" |
65 | 3 | 6 | 0 | $params->{'dimension'} || $headers->host || $url->host |
66 | 1 | 4 | 0 | $params->{'family'} || $defaults->{'family'} || $headers->host || $url->host |
84 | 0 | 0 | 6 | $err ||= $tx->error |