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

Function TestFilterFunctionRollback

filter_test.go:35–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

33}
34
35func TestFilterFunctionRollback(t *testing.T) {
36 sel := Doc().Find(".pvk-content")
37 sel2 := sel.FilterFunction(func(i int, s *Selection) bool {
38 return i > 0
39 }).End()
40 assertEqual(t, sel, sel2)
41}
42
43func TestFilterNode(t *testing.T) {
44 sel := Doc().Find(".pvk-content")

Callers

nothing calls this directly

Calls 5

DocFunction · 0.85
assertEqualFunction · 0.85
FindMethod · 0.80
EndMethod · 0.80
FilterFunctionMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…