Branch Coverage

blib/lib/Mojolicious/Plugin/ClientIP.pm
Criterion Covered Total %
branch 12 14 85.7


line true false branch
13 1 1 if ($conf->{'ignore'})
22 0 15 if $c->stash($key)
45 0 20 unless /$ip4/
46 13 7 if _match($_, $ignore)
59 3 70 if $ip eq $_
61 67 3 if (my($net, $prefix) = m[^([\d\.]+)/(\d+)$])
63 10 57 if substr($ip_bit, 0, $2) eq substr($match_ip_bit, 0, $2)