Branch Coverage

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


line true false branch
50 1 1 if ($type == 2)
54 1 0 if ($type == 10)
69 2 23 if (ref $self eq 'Net::Patricia::AF_INET6') { }
70 2 0 $str =~ s[/(\d+)$][] ? :
72 17 6 $str =~ s[/(\d+)$][] ? :
78 0 12 if @_ < 2 or @_ > 3
80 8 4 unless @_ > 2
85 0 8 if @_ != 2
91 0 1 if @_ != 2
101 0 4 if @_ != 2
111 0 1 if @_
114 0 1 if @_ != 3
121 2 0 if $self->add_string($_, $data)
127 0 1 if @_ != 2
134 2 0 if $self->remove_string($_)
158 0 11 if @_ < 2 or @_ > 4
160 0 0 defined $bits ? :
0 11 if @_ < 4
162 1 10 unless defined $packed
163 0 10 if @_ < 3
168 0 0 if @_ < 2 or @_ > 4
172 0 0 unless defined $ip
173 0 0 defined $bits ? :
0 0 if @_ < 4
174 0 0 if @_ < 3
179 0 3 if @_ < 2 or @_ > 3
181 3 0 if @_ < 3
186 0 3 if @_ < 2 or @_ > 3
188 1 2 if @_ < 3
193 0 7 if @_ < 2 or @_ > 3
196 0 7 unless defined $packed
197 0 7 if @_ < 3
202 0 1 if @_ < 2 or @_ > 3
205 0 1 unless defined $packed
206 0 1 if @_ < 3
211 0 4 if @_ < 2 or @_ > 3
214 0 4 unless defined $packed
215 0 4 if @_ < 3
220 0 0 if @_ < 2 or @_ > 3
222 0 0 if @_ < 3
245 0 1 if @_ < 2 or @_ > 4
247 0 0 defined $bits ? :
0 1 if @_ < 3
249 0 1 unless defined $packed
250 0 1 if @_ < 4
255 0 0 if @_ < 2 or @_ > 4
259 0 0 unless defined $ip
260 0 0 defined $bits ? :
0 0 if @_ < 3
261 0 0 if @_ < 4
266 0 0 if @_ < 2 or @_ > 3
268 0 0 if @_ < 3
273 0 0 if @_ < 2 or @_ > 3
275 0 0 if @_ < 3
280 0 1 if @_ < 2 or @_ > 3
283 0 1 unless defined $packed
284 0 1 if @_ < 3
289 0 0 if @_ < 2 or @_ > 3
292 0 0 unless defined $packed
293 0 0 if @_ < 3
298 0 0 if @_ < 2 or @_ > 3
301 0 0 unless defined $packed
302 0 0 if @_ < 3
307 0 0 if @_ < 2 or @_ > 3
309 0 0 if @_ < 3