Branch Coverage

blib/lib/NetAddr/IP/InetBase.pm
Criterion Covered Total %
branch 13 30 43.3


line true false branch
136 0 25128 unless length $_[0] == 16
142 0 75522 unless length $_[0] == 16
169 0 7112 unless defined $host
170 7108 4 if ($host =~ /^(\d+)(?:|\.(\d+)(?:|\.(\d+)(?:|\.(\d+))))$/)
171 7108 0 if (defined $4) { }
0 0 elsif (defined $3) { }
0 0 elsif (defined $2) { }
173 0 7108 unless $1 >= 0 and $1 < 256 and $2 >= 0 and $2 < 256 and $3 >= 0 and $3 < 256 and $4 >= 0 and $4 < 256
182 0 0 unless $1 >= 0 and $1 < 256 and $2 >= 0 and $2 < 256 and $3 >= 0 and $3 < 256
190 0 0 unless $1 >= 0 and $1 < 256 and $2 >= 0 and $2 < 256
207 7108 0 $host ? :
248 0 91081 if (length $_[0] != 16)
252 91081 0 ($_[0] & $_ipv4mask) eq $_zero ? :
266 75522 0 if $rv
273 32 32 if (grep {$_ eq ':upper';} @_)