Branch Coverage

blib/lib/Net/IP/Util.pm
Criterion Covered Total %
branch 0 98 0.0


line true false branch
46 0 0 unless isBinIpAddr($addr) and _validateIp(&bin2decIpAddr($addr))
48 0 0 if $addr =~ /^0/
54 0 0 unless isBinIpAddr($addr) and _validateIp(&bin2decIpAddr($addr))
56 0 0 if $addr =~ /^10/
62 0 0 unless isBinIpAddr($addr) and _validateIp(&bin2decIpAddr($addr))
64 0 0 if $addr =~ /^110/
70 0 0 unless isBinIpAddr($addr) and _validateIp(&bin2decIpAddr($addr))
72 0 0 if $addr =~ /^1110/
78 0 0 unless isBinIpAddr($addr) and _validateIp(&bin2decIpAddr($addr))
80 0 0 if $addr =~ /^11110/
86 0 0 unless isBinIpAddr($addr)
98 0 0 unless isBinIpAddr($addr) and _validateIp(&bin2decIpAddr($addr))
101 0 0 $addr =~ /^11110/ ? :
0 0 $addr =~ /^1110/ ? :
0 0 $addr =~ /^110/ ? :
0 0 $addr =~ /^10/ ? :
0 0 $addr =~ /^0/ ? :
139 0 0 if $addr =~ /^(([0|1]){8}\.){3}([0|1]){8}$/
145 0 0 if $addr =~ /^[01.]*$/
146 0 0 if $_ > 255
148 0 0 if ($addr =~ /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/ and &$validate($1, $2, $3, $4)) { }
159 0 0 unless isBinIpAddr($addr)
163 0 0 $prefix =~ /0/ ? :
169 0 0 unless isBinIpAddr($mask)
171 0 0 unless $noBits
173 0 0 if not $noBits =~ /^\d+$/ or $noBits > 24
174 0 0 unless isValidMask($mask)
186 0 0 unless isBinIpAddr($addr) and _validateIp($addr)
190 0 0 if $mask and not isBinIpAddr($mask)
203 0 0 unless isBinIpAddr($ip) and _validateIp(&bin2decIpAddr($ip))
206 0 0 if not $maskBits =~ /^\d+$/ or $maskBits < 0 or $maskBits > 32
209 0 0 if (not $mask) { }
215 0 0 unless isValidMask($mask)
216 0 0 unless isBinIpAddr($mask)
223 0 0 if $diffBits < 0
226 0 0 unless defined $diffBits
239 0 0 unless isBinIpAddr($addr) and _validateIp($addr)
246 0 0 unless defined $borrow
259 0 0 if $defaultMask
260 0 0 unless $defaultMask
262 0 0 if $subnetMask
263 0 0 unless isBinIpAddr($addr)
264 0 0 unless isBinIpAddr($defaultMask)
265 0 0 unless isBinIpAddr($subnetMask)
271 0 0 unless $numSubnetBits =~ /^\d+$/
280 0 0 if ($bc) { }
302 0 0 if ($o1 <= 255) { }
310 0 0 if ($o2 <= 255) { }
318 0 0 if ($o3 <= 255) { }