(t *testing.T)
| 29 | } |
| 30 | |
| 31 | func TestNodeEmbedAddChild(t *testing.T) { |
| 32 | parent := testdata.NewNodeEmbed() |
| 33 | child := &testdata.NodeEmbed{} |
| 34 | parent.AddChild(child) |
| 35 | child.SetName("child1") |
| 36 | assert.Len(t, parent.Children, 1) |
| 37 | assert.Equal(t, parent, child.Parent) |
| 38 | assert.Equal(t, "/node-embed/child1", child.Path()) |
| 39 | } |
| 40 | |
| 41 | func TestNodeEmbedNewChild(t *testing.T) { |
| 42 | parent := testdata.NewNodeEmbed() |