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

Function TestClosestNodesItself

traversal_test.go:742–746  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

740}
741
742func TestClosestNodesItself(t *testing.T) {
743 sel := Doc2().Find(".three")
744 sel2 := sel.ClosestNodes(Doc2().Find(".row").Nodes...)
745 assertLength(t, sel2.Nodes, sel.Length())
746}
747
748func TestClosestNodesNoDupes(t *testing.T) {
749 sel := Doc().Find(".span12")

Callers

nothing calls this directly

Calls 5

Doc2Function · 0.85
assertLengthFunction · 0.85
FindMethod · 0.80
ClosestNodesMethod · 0.80
LengthMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…