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

Function TestNextUntilSelection

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

Source from the content-addressed store, hash-verified

486}
487
488func TestNextUntilSelection(t *testing.T) {
489 sel := Doc2().Find("#n2")
490 sel2 := Doc2().Find("#n4")
491 sel2 = sel.NextUntilSelection(sel2)
492 assertLength(t, sel2.Nodes, 1)
493 assertSelectionIs(t, sel2, "#n3")
494}
495
496func TestNextUntilSelectionRollback(t *testing.T) {
497 sel := Doc2().Find("#n2")

Callers

nothing calls this directly

Calls 5

Doc2Function · 0.85
assertLengthFunction · 0.85
assertSelectionIsFunction · 0.85
FindMethod · 0.80
NextUntilSelectionMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…