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

Function TestIsSelection

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

Source from the content-addressed store, hash-verified

53}
54
55func TestIsSelection(t *testing.T) {
56 sel := Doc().Find("div")
57 sel2 := Doc().Find(".pvk-gutter")
58
59 if !sel.IsSelection(sel2) {
60 t.Error("Expected some div to have a pvk-gutter class.")
61 }
62}
63
64func TestIsSelectionNot(t *testing.T) {
65 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…