(t *testing.T)
| 88 | } |
| 89 | |
| 90 | func TestNodeDeleteChild(t *testing.T) { |
| 91 | parent := NewNodeBase() |
| 92 | child := NewNodeBase(parent) |
| 93 | assert.Len(t, parent.Children, 1) |
| 94 | assert.True(t, parent.DeleteChild(child)) |
| 95 | assert.Len(t, parent.Children, 0) |
| 96 | } |
| 97 | |
| 98 | func TestNodeDeleteChildByName(t *testing.T) { |
| 99 | parent := NewNodeBase() |
nothing calls this directly
no test coverage detected