()
| 16 | ) |
| 17 | |
| 18 | func testNodeTree() *testdata.NodeEmbed { |
| 19 | parent := testdata.NewNodeEmbed() |
| 20 | parent.Mbr1 = "bloop" |
| 21 | parent.Mbr2 = 32 |
| 22 | child1 := testdata.NewNodeEmbed(parent) |
| 23 | child1.SetName("child1") |
| 24 | child2 := testdata.NewNodeEmbed(parent) |
| 25 | child2.SetName("child2") |
| 26 | child3 := testdata.NewNodeEmbed(parent) |
| 27 | child3.SetName("child3") |
| 28 | schild1 := testdata.NewNodeEmbed(child2) |
| 29 | schild1.SetName("subchild1") |
| 30 | return parent |
| 31 | } |
| 32 | |
| 33 | func TestNodeJSON(t *testing.T) { |
| 34 | parent := testNodeTree() |
no test coverage detected