Condition Coverage

blib/lib/Mojo/Netdata/Collector/HTTP.pm
Criterion Covered Total %
condition 16 22 72.7


or 2 conditions

line l !l condition
24 0 3 $config->{'proxy'} // 1
57 2 10 $defaults->{'headers'} || {}
81 8 1 $tx->res->code // 0
82 1 8 $err || {'code', $code}
97 1 10 $params->{'method'} || 'GET'

or 3 conditions

line l !l&&r !l&&!r condition
25 0 3 0 $config->{'user_agent'} || "Mojo-Netdata/$VERSION (Perl)"
61 4 8 0 $params->{'dimension'} || $headers->host || $url->host
62 1 5 0 $params->{'family'} || $defaults->{'family'} || $headers->host || $url->host
79 1 0 8 $err ||= $tx->error