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

Function TestSliceRollback

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

Source from the content-addressed store, hash-verified

163}
164
165func TestSliceRollback(t *testing.T) {
166 sel := Doc().Find(".pvk-content")
167 sel2 := sel.Slice(0, 2).End()
168 assertEqual(t, sel, sel2)
169}
170
171func TestGet(t *testing.T) {
172 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