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

Function TestSliceInvalidToEnd

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

Source from the content-addressed store, hash-verified

133}
134
135func TestSliceInvalidToEnd(t *testing.T) {
136 defer assertPanic(t)
137 Doc().Find("").Slice(2, ToEnd)
138}
139
140func TestSliceOutOfBounds(t *testing.T) {
141 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