Branch Coverage

lib/NetAddr/IP/LazyInit.pm
Criterion Covered Total %
branch 22 48 45.8


line true false branch
110 4 0 if ($$self{'x'}[0] =~ m[^(.*?)(?:/|$)]) { }
131 0 0 if ($$self{'x'}[1] and $$self{'x'}[1] =~ /\D/) { }
146 283 14080 if ref $_ eq 'NetAddr::IP::LazyInit'
155 770 3852 if ref $_ eq 'NetAddr::IP::LazyInit'
161 1 34 if (grep {$_ eq ':rfc3021';} @_)
166 1 34 if (grep {$_ eq ':old_storable';} @_)
169 1 34 if (grep {$_ eq ':old_nth';} @_)
174 1 34 if (grep {$_ eq ':lower';} @_)
179 0 35 if (grep {$_ eq ':upper';} @_)
201 0 0 if ref($_[0]) =~ /NetAddr::IP::LazyInit/
203 0 0 if ref($_[1]) =~ /NetAddr::IP::LazyInit/
208 0 0 if ref $_[0] eq 'NetAddr::IP::LazyInit'
210 0 0 if ref $_[1] eq 'NetAddr::IP::LazyInit'
215 0 0 if ref $_[0] eq 'NetAddr::IP::LazyInit'
217 0 0 if ref $_[1] eq 'NetAddr::IP::LazyInit'
222 2 0 if ref $_[0] eq 'NetAddr::IP::LazyInit'
224 0 2 if ref $_[1] eq 'NetAddr::IP::LazyInit'
227 5 4 &comp_addr_mask > 0 ? :
228 0 0 &comp_addr_mask < 0 ? :
229 0 0 &comp_addr_mask < 0 ? :
230 0 0 &comp_addr_mask > 0 ? :
240 23 0 if ref $_[0] eq 'NetAddr::IP::LazyInit'
241 21 2 if ref $_[1] eq 'NetAddr::IP::LazyInit'
260 0 1253 $method ? :