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

Function TestSliceEmpty

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

Source from the content-addressed store, hash-verified

123}
124
125func TestSliceEmpty(t *testing.T) {
126 defer assertPanic(t)
127 Doc().Find("x").Slice(0, 2)
128}
129
130func TestSliceInvalid(t *testing.T) {
131 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