Condition Coverage

blib/lib/Netstack/Utils/Ip.pm
Criterion Covered Total %
condition 17 66 25.7


and 3 conditions

line !l l&&!r l&&r condition
101 4 0 0 $ip =~ /^(\d+)$/u and $1 < 256
107 0 0 4 $n >= 0 and $n < 4
118 0 0 16 $_ >= 0 and $_ < 256
131 0 0 2 defined $ipMin and defined $ipMax
133 0 0 2 isIpv4($ipMin) and isIpv4($ipMax)
212 0 0 3 $num >= 0 and $num <= 4294967295
315 0 0 1 $mask >= 0 and $mask <= 32
344 0 0 1 $min >= 0 and $min <= 4294967295
0 1 0 $min >= 0 and $min <= 4294967295 and $max >= 0 || $max <= 4294967295
354 0 0 1 $min == ($min & 4294967296 - (1 << 32 - $mask)) and $max == $min + (1 << 32 - $mask) - 1
403 0 0 0 $min >= 0 and $min <= 65535
0 0 0 $max >= 0 and $max <= 65535
0 0 0 $min >= 0 and $min <= 65535 and ($max >= 0 and $max <= 65535)

or 2 conditions

line l !l condition
85 4 0 shift() || (return)
180 2 0 $mask // 32
195 1 0 $self->changeMaskToNumForm($mask) // 32

or 3 conditions

line l !l&&r !l&&!r condition
173 0 0 0 $suffix < 0 or $suffix > 255
243 40 0 0 defined $_ || /^\s*$/u
280 0 0 5 $mask < 0 or $mask > 32
341 1 0 0 defined $min or not defined $max
344 1 0 0 $max >= 0 || $max <= 4294967295
377 0 0 0 $proto eq 0 or $proto =~ /any|all/iu
402 0 0 0 $max //= $min