Branch Coverage

blib/lib/Net/IPAM/Tree.pm
Criterion Covered Total %
branch 30 30 100.0


line true false branch
80 2 34 if ($i > 0 and $self->{'_items'}[$i]->cmp($self->{'_items'}[$i - 1]) == 0)
88 1 9 if (wantarray)
92 1 8 if (@dups)
108 2 9 unless &Scalar::Util::blessed($thing)
111 1 8 if $thing->isa("Net::IPAM::IP")
113 1 8 unless $thing->isa("Net::IPAM::Block")
140 2 12 unless &Scalar::Util::blessed($thing)
143 1 11 if $thing->isa("Net::IPAM::IP")
145 1 11 unless $thing->isa("Net::IPAM::Block")
185 2 3 if (defined $cb) { }
186 1 1 unless ref $cb eq "CODE"
197 3 1 if $buf
227 1 4 unless defined $cb
228 1 3 unless ref $cb eq "CODE"
232 1 2 if defined $err