Branch Coverage

blib/lib/Farly/IPv4/Network.pm
Criterion Covered Total %
branch 14 18 77.7


line true false branch
16 0 157 unless $network
39 142 15 if ($network =~ /^((\d{1,3})((\.)(\d{1,3})){3})\s+((\d{1,3})((\.)(\d{1,3})){3})$/) { }
12 3 elsif ($network =~ m[^(\d{1,3}(\.\d{1,3}){3})(/)(\d+)$]) { }
3 0 elsif ($network =~ /^\d+\s+\d+$/) { }
66 86 71 if ($mask =~ /0.0.0.0/) { }
1 70 elsif ($mask =~ /^0/) { }
82 12 0 if ($bits >= 0 and $bits <= 32) { }
99 1644 3380 if ($current_bit == 1)
102 0 5024 if ($flag == 1 and $current_bit == 0)