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

Function TestGet

array_test.go:171–177  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

169}
170
171func TestGet(t *testing.T) {
172 sel := Doc().Find(".pvk-content")
173 node := sel.Get(1)
174 if sel.Nodes[1] != node {
175 t.Errorf("Expected node %v to be %v.", node, sel.Nodes[1])
176 }
177}
178
179func TestGetNegative(t *testing.T) {
180 sel := Doc().Find(".pvk-content")

Callers

nothing calls this directly

Calls 3

DocFunction · 0.85
FindMethod · 0.80
GetMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…