MCPcopy Create free account
hub / github.com/PuerkitoBio/goquery / TestNotFunctionRollback

Function TestNotFunctionRollback

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

Source from the content-addressed store, hash-verified

103}
104
105func TestNotFunctionRollback(t *testing.T) {
106 sel := Doc().Find(".pvk-content")
107 sel2 := sel.NotFunction(func(i int, s *Selection) bool {
108 return i > 0
109 }).End()
110 assertEqual(t, sel, sel2)
111}
112
113func TestNotNode(t *testing.T) {
114 sel := Doc().Find(".pvk-content")

Callers

nothing calls this directly

Calls 5

DocFunction · 0.85
assertEqualFunction · 0.85
FindMethod · 0.80
EndMethod · 0.80
NotFunctionMethod · 0.80

Tested by

no test coverage detected