Branch Coverage

blib/lib/Tree/Binary2.pm
Criterion Covered Total %
branch 38 40 95.0


line true false branch
39 24 190 if (@_) { }
41 2 22 unless $node
46 22 2 if ($node)
52 2 22 if ($old)
77 0 443 if (@_) { }
82 438 5 if ((caller)->isa('Tree::Binary2') or $self->isa(scalar caller)) { }
83 200 238 wantarray ? :
101 3 86 unless $order
103 79 10 if (wantarray) { }
104 54 25 if ($order == $self->IN_ORDER) { }
118 2 8 if ($order eq $self->IN_ORDER) { }
4 4 elsif ($order eq $self->PRE_ORDER) { }
2 2 elsif ($order eq $self->POST_ORDER) { }
2 0 elsif ($order eq $self->LEVEL_ORDER) { }
122 2 18 unless @list
134 4 36 unless $node
143 72 4 if (@stack)
146 40 32 unless $next_node
159 2 18 unless @list
187 2 18 unless $node