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

Function TestIsSelectionNot

query_test.go:64–71  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

62}
63
64func TestIsSelectionNot(t *testing.T) {
65 sel := Doc().Find("div")
66 sel2 := Doc().Find("a")
67
68 if sel.IsSelection(sel2) {
69 t.Error("Expected some div NOT to be an anchor.")
70 }
71}
72
73func TestIsNodes(t *testing.T) {
74 sel := Doc().Find("div")

Callers

nothing calls this directly

Calls 3

DocFunction · 0.85
FindMethod · 0.80
IsSelectionMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…