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 75521 unless length $_[0] == 16
169 0 7074 unless defined $host
170 7071 3 if ($host =~ /^(\d+)(?:|\.(\d+)(?:|\.(\d+)(?:|\.(\d+))))$/)
171 7071 0 if (defined $4) { }
0 0 elsif (defined $3) { }
0 0 elsif (defined $2) { }
173 0 7071 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 7071 0 $host ? :
248 0 91079 if (length $_[0] != 16)
252 91079 0 ($_[0] & $_ipv4mask) eq $_zero ? :
266 75521 0 if $rv
273 31 31 if (grep {$_ eq ':upper';} @_)