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

Function TestSliceInvalid

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

Source from the content-addressed store, hash-verified

128}
129
130func TestSliceInvalid(t *testing.T) {
131 defer assertPanic(t)
132 Doc().Find("").Slice(0, 2)
133}
134
135func TestSliceInvalidToEnd(t *testing.T) {
136 defer assertPanic(t)

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