blib/lib/Mojolicious/Plugin/ClientIP/Pluggable.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 14 | 21 | 66.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
201 | 0 | 13 | 4 | $restrict_family and $restrict_family ne $address_family |
line | l | !l | condition |
---|---|---|---|
113 | 1 | 1 | $ENV{'CLIENTIP_PLUGGABLE_ALLOW_LOOPBACK'} || 0 |
179 | 2 | 0 | $conf->{'analyze_headers'} // die(q[Please, specify 'analyzed_headers' option]) |
185 | 2 | 0 | $conf->{'fallbacks'} // ['remote_address'] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
117 | 6 | 2 | 2 | Data::Validate::IP::is_public_ipv4($ip) || Data::Validate::IP::is_loopback_ipv4($ip) |
123 | 3 | 0 | 0 | Data::Validate::IP::is_public_ipv6($ip) || Data::Validate::IP::is_loopback_ipv6($ip) |
138 | 5 | 25 | 0 | $headers->header($_) // () |
158 | 5 | 1 | 0 | $1 // $2 |