(t *testing.T, n *Node, expected string)
| 44 | } |
| 45 | |
| 46 | func testNode(t *testing.T, n *Node, expected string) { |
| 47 | if n.Data != expected { |
| 48 | t.Fatalf("expected node name is %s,but got %s", expected, n.Data) |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | func testAttr(t *testing.T, n *Node, name, expected string) { |
| 53 | for _, attr := range n.Attr { |
no outgoing calls
no test coverage detected
searching dependent graphs…