MCPcopy Index your code
hub / github.com/PuerkitoBio/goquery / TestGetNegative

Function TestGetNegative

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

Source from the content-addressed store, hash-verified

177}
178
179func TestGetNegative(t *testing.T) {
180 sel := Doc().Find(".pvk-content")
181 node := sel.Get(-3)
182 if sel.Nodes[0] != node {
183 t.Errorf("Expected node %v to be %v.", node, sel.Nodes[0])
184 }
185}
186
187func TestGetInvalid(t *testing.T) {
188 defer assertPanic(t)

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…