Branch Coverage

blib/lib/Net/Patricia.pm
Criterion Covered Total %
branch 45 130 34.6


line true false branch
52 1 1 if ($type == 2)
56 1 0 if ($type == 10)
71 3 31 if (ref $self eq 'Net::Patricia::AF_INET6') { }
72 3 0 $str =~ s[/(\d+)$][] ? :
74 20 11 $str =~ s[/(\d+)$][] ? :
80 0 12 if @_ < 2 or @_ > 3
82 8 4 unless @_ > 2
87 0 16 if @_ != 2
93 0 2 if @_ != 2
103 0 4 if @_ != 2
113 0 1 if @_
116 0 1 if @_ != 3
123 2 0 if $self->add_string($_, $data)
129 0 1 if @_ != 2
136 2 0 if $self->remove_string($_)
160 0 11 if @_ < 2 or @_ > 4
162 0 0 defined $bits ? :
0 11 if @_ < 4
164 1 10 unless defined $packed
165 0 10 if @_ < 3
170 0 0 if @_ < 2 or @_ > 4
174 0 0 unless defined $ip
175 0 0 defined $bits ? :
0 0 if @_ < 4
176 0 0 if @_ < 3
181 0 6 if @_ < 2 or @_ > 3
183 6 0 if @_ < 3
188 0 6 if @_ < 2 or @_ > 3
190 2 4 if @_ < 3
195 0 14 if @_ < 2 or @_ > 3
198 0 14 unless defined $packed
199 0 14 if @_ < 3
204 0 2 if @_ < 2 or @_ > 3
207 0 2 unless defined $packed
208 0 2 if @_ < 3
213 0 4 if @_ < 2 or @_ > 3
216 0 4 unless defined $packed
217 0 4 if @_ < 3
222 0 0 if @_ < 2 or @_ > 3
224 0 0 if @_ < 3
247 0 1 if @_ < 2 or @_ > 4
249 0 0 defined $bits ? :
0 1 if @_ < 3
251 0 1 unless defined $packed
252 0 1 if @_ < 4
257 0 0 if @_ < 2 or @_ > 4
261 0 0 unless defined $ip
262 0 0 defined $bits ? :
0 0 if @_ < 3
263 0 0 if @_ < 4
268 0 0 if @_ < 2 or @_ > 3
270 0 0 if @_ < 3
275 0 0 if @_ < 2 or @_ > 3
277 0 0 if @_ < 3
282 0 2 if @_ < 2 or @_ > 3
285 0 2 unless defined $packed
286 0 2 if @_ < 3
291 0 0 if @_ < 2 or @_ > 3
294 0 0 unless defined $packed
295 0 0 if @_ < 3
300 0 0 if @_ < 2 or @_ > 3
303 0 0 unless defined $packed
304 0 0 if @_ < 3
309 0 0 if @_ < 2 or @_ > 3
311 0 0 if @_ < 3