Branch Coverage

lib/Data/IPV4/Range/Parse.pm
Criterion Covered Total %
branch 31 42 73.8


line true false branch
71 1 1 if $#_ > 0
72 1 34 if $#_ > 0
81 0 2 unless defined $b_end
84 1 1 if $ab_cmp != 0
89 1 7 if $#_ > 1
93 1 15 if $#_ > 1
94 1 1 if $#_ > 0
95 1 11 if $#_ > 0
97 0 39 if $#_ > 0
100 0 39 unless defined $cidr
101 0 39 unless $cidr =~ /^\d{1,2}$/s
102 0 39 if $cidr > 32 or $cidr < 0
103 1 38 if $shift == 32
111 0 6 unless $notation =~ m[ ^\d{1,3}(\.\d{1,3}){0,3} \s*/\s* \d{1,3}(\.\d{1,3}){0,3}$ ]x
120 0 6 if ($mask =~ /\./) { }
6 0 elsif ($mask >= 0 and $mask <= 32) { }
136 0 5 unless defined $range
140 0 5 unless $range =~ / ^\d{1,3}(\.\d{1,3}){0,3} \s*-\s* \d{1,3}(\.\d{1,3}){0,3}$ /x
153 0 3 unless defined $ip
160 4 3 if $source =~ m[/]
161 2 1 if $source =~ /-/