MCPcopy
hub / github.com/PuerkitoBio/goquery / TestAddNodes

Function TestAddNodes

expand_test.go:50–55  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

48}
49
50func TestAddNodes(t *testing.T) {
51 sel := Doc().Find("div.pvk-gutter")
52 sel2 := Doc().Find(".pvk-content")
53 sel = sel.AddNodes(sel2.Nodes...)
54 assertLength(t, sel.Nodes, 9)
55}
56
57func TestAddNodesNone(t *testing.T) {
58 sel := Doc().Find("div.pvk-gutter").AddNodes()

Callers

nothing calls this directly

Calls 4

DocFunction · 0.85
assertLengthFunction · 0.85
FindMethod · 0.80
AddNodesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…