(value NodeValue, id int)
| 29 | } |
| 30 | |
| 31 | func (n *Leaf) CreateChild(value NodeValue, id int) Node { |
| 32 | // Leafs only have leaf children |
| 33 | return &Leaf{ |
| 34 | ID: id, |
| 35 | NodeValue: value, |
| 36 | Parent: n, |
| 37 | NodeLeft: nil, |
| 38 | NodeRight: nil, |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | func (n *Leaf) GetID() int { |
| 43 | return n.ID |
nothing calls this directly
no outgoing calls
no test coverage detected