()
| 13 | } |
| 14 | |
| 15 | func (n *Leaf) Left() Node { |
| 16 | if n.NodeLeft != nil { |
| 17 | n.NodeLeft.Parent = n // Leaf is the parent of its left child always |
| 18 | } |
| 19 | |
| 20 | return n.NodeLeft |
| 21 | } |
| 22 | |
| 23 | func (n *Leaf) Right() Node { |
| 24 | return n.NodeRight |
nothing calls this directly
no outgoing calls
no test coverage detected