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

Function TestGet

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

Source from the content-addressed store, hash-verified

180}
181
182func TestGet(t *testing.T) {
183 sel := Doc().Find(".pvk-content")
184 node := sel.Get(1)
185 if sel.Nodes[1] != node {
186 t.Errorf("Expected node %v to be %v.", node, sel.Nodes[1])
187 }
188}
189
190func TestGetNegative(t *testing.T) {
191 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