Condition Coverage

blib/lib/PAGI/Middleware/ReverseProxy.pm
Criterion Covered Total %
condition 7 25 28.0


and 3 conditions

line !l l&&!r l&&r condition
134 2 0 0 $forwarded_port and $forwarded_port =~ /^\d+$/
163 0 0 0 $ip =~ /^[\d.]+$/ and $network =~ /^[\d.]+$/
168 0 0 0 defined $ip_num and defined $net_num
179 0 0 0 /^\d+$/ and $_ >= 0

or 2 conditions

line l !l condition
62 3 0 $config->{'trusted_proxies'} // ["127.0.0.1", "::1"]
63 0 3 $config->{'trust_all'} // 0
77 3 0 $scope->{'client'}[0] // ""
122 0 0 $scope->{'headers'} // []
196 10 0 $scope->{'headers'} // []

or 3 conditions

line l !l&&r !l&&!r condition
78 0 2 1 $self->{'trust_all'} or $self->_is_trusted($client_ip)