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

Function TestSliceEmpty

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

Source from the content-addressed store, hash-verified

112}
113
114func TestSliceEmpty(t *testing.T) {
115 defer assertPanic(t)
116 Doc().Find("x").Slice(0, 2)
117}
118
119func TestSliceInvalid(t *testing.T) {
120 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