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

Function TestSliceInvalidToEnd

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

Source from the content-addressed store, hash-verified

122}
123
124func TestSliceInvalidToEnd(t *testing.T) {
125 defer assertPanic(t)
126 Doc().Find("").Slice(2, ToEnd)
127}
128
129func TestSliceOutOfBounds(t *testing.T) {
130 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