Condition Coverage

blib/lib/Mojolicious/Plugin/ForwardedFor.pm
Criterion Covered Total %
condition 10 13 76.9


or 2 conditions

line l !l condition
15 0 1 ($options->{'levels'} // $ENV{'MOJO_REVERSE_PROXY'}) // 1
25 6 2 $c->tx->req->headers->header('X-Forwarded-For') // ''

or 3 conditions

line l !l&&r !l&&!r condition
15 5 0 1 $options->{'levels'} // $ENV{'MOJO_REVERSE_PROXY'}
26 5 1 2 $addresses[-$levels] // $addresses[0]
1 2 0 ($addresses[-$levels] // $addresses[0]) // $c->tx->original_remote_address