(t *testing.T, nodes []*html.Node, length int)
| 62 | } |
| 63 | |
| 64 | func assertLength(t *testing.T, nodes []*html.Node, length int) { |
| 65 | if len(nodes) != length { |
| 66 | t.Errorf("Expected %d nodes, found %d.", length, len(nodes)) |
| 67 | for i, n := range nodes { |
| 68 | t.Logf("Node %d: %+v.", i, n) |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | func assertClass(t *testing.T, sel *Selection, class string) { |
| 74 | if !sel.HasClass(class) { |
no outgoing calls
no test coverage detected