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

Function TestSliceRollback

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

Source from the content-addressed store, hash-verified

174}
175
176func TestSliceRollback(t *testing.T) {
177 sel := Doc().Find(".pvk-content")
178 sel2 := sel.Slice(0, 2).End()
179 assertEqual(t, sel, sel2)
180}
181
182func TestGet(t *testing.T) {
183 sel := Doc().Find(".pvk-content")

Callers

nothing calls this directly

Calls 5

DocFunction · 0.85
assertEqualFunction · 0.85
FindMethod · 0.80
EndMethod · 0.80
SliceMethod · 0.80

Tested by

no test coverage detected