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

Function TestNotFunction

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

Source from the content-addressed store, hash-verified

96}
97
98func TestNotFunction(t *testing.T) {
99 sel := Doc().Find(".pvk-content").NotFunction(func(i int, s *Selection) bool {
100 return i > 0
101 })
102 assertLength(t, sel.Nodes, 1)
103}
104
105func TestNotFunctionRollback(t *testing.T) {
106 sel := Doc().Find(".pvk-content")

Callers

nothing calls this directly

Calls 4

DocFunction · 0.85
assertLengthFunction · 0.85
NotFunctionMethod · 0.80
FindMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…