Branch Coverage

blib/lib/Tree/Numbered.pm
Criterion Covered Total %
branch 32 68 47.0


line true false branch
11 3 10 unless exists $counters[$lucky_number]
38 10 3 if ($class = ref $parent) { }
55 3 10 if (scalar @_ > 2) { }
9 1 elsif (scalar @_ == 2) { }
58 9 0 if defined $value
83 1 37 if ($cursor > $length)
84 1 0 $length ? :
88 25 13 if (exists $$self{'Items'}[$cursor])
114 0 0 if (exists $$self{'Items'}[$cursor])
118 0 0 if ($cursor > $self->childCount)
134 0 10 unless $newNode
156 12 0 if (exists $$self{'Saved'} and $$self{'Saved'} <= $self->childCount)
172 2 6 unless (defined $lucky_number)
249 0 116 unless $$self{'Fields'}
251 116 0 if (wantarray) { }
267 88 71 if $_ eq $name
281 37 15 if $self->hasField($name)
289 16 0 if $self->hasField($name)
299 0 0 unless $$self{'Fields'}
307 0 0 unless $$self{'Fields'}
323 10 24 if exists $$self{$name}
340 0 0 if ($fields[$i] eq $name)
360 34 0 if ($AUTOLOAD =~ /get(.*)$/) { }
0 0 elsif ($AUTOLOAD =~ /set(.*)$/) { }
361 34 0 if $self->hasField($1)
364 0 0 if $self->hasField($1)
382 0 0 if $serial == $self->getNumber
388 0 0 if ($branch->getNumber == $serial) { }
0 0 elsif (my $subtree = getSubTree($branch, $serial)) { }
409 0 8 $serial ? :
417 4 8 if ($branch->childCount > 0)
442 0 0 if ($$branch{'_Serial'} == $serial) { }
0 0 elsif ($branch->childCount) { }
449 0 0 if ($#patharray >= 0)