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

Function TestNegativeSliceOutOfBounds

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

Source from the content-addressed store, hash-verified

169}
170
171func TestNegativeSliceOutOfBounds(t *testing.T) {
172 defer assertPanic(t)
173 Doc().Find(".container-fluid").Slice(-12, -7)
174}
175
176func TestSliceRollback(t *testing.T) {
177 sel := Doc().Find(".pvk-content")

Callers

nothing calls this directly

Calls 4

assertPanicFunction · 0.85
DocFunction · 0.85
SliceMethod · 0.80
FindMethod · 0.80

Tested by

no test coverage detected