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

Function TestPrevFilteredUntilSelection

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

Source from the content-addressed store, hash-verified

639}
640
641func TestPrevFilteredUntilSelection(t *testing.T) {
642 sel := Doc2().Find(".odd")
643 sel2 := Doc2().Find(".two")
644 sel = sel.PrevFilteredUntilSelection(".odd", sel2)
645 assertLength(t, sel.Nodes, 2)
646 assertSelectionIs(t, sel, "#n4", "#nf4")
647}
648
649func TestPrevFilteredUntilSelectionRollback(t *testing.T) {
650 sel := Doc2().Find(".even")

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…