Branch Coverage

blib/lib/Net/GrpNetworks.pm
Criterion Covered Total %
branch 7 12 58.3


line true false branch
40 1 1 if ($$obj{'Net'}[$middle]{'Network'} <= $int_ip) { }
42 1 0 if (($int_ip & $$obj{'Net'}[$middle]{'Mask'}) == $$obj{'Net'}[$middle]{'Network'})
85 3 0 if (verif_ip_is_ok($net) and verif_ip_is_ok($mask))
114 6 0 if ($ip =~ /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/)
116 6 0 if ($1 >= 0 and $1 <= 255 and $2 >= 0 and $2 <= 255 and $3 >= 0 and $3 <= 255 and $4 >= 0 and $4 <= 255)
133 7 0 if ($ip =~ /(\d+)\.(\d+)\.(\d+)\.(\d+)/)