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

Function TestFirstRollback

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

Source from the content-addressed store, hash-verified

20}
21
22func TestFirstRollback(t *testing.T) {
23 sel := Doc().Find(".pvk-content")
24 sel2 := sel.First().End()
25 assertEqual(t, sel, sel2)
26}
27
28func TestLast(t *testing.T) {
29 sel := Doc().Find(".pvk-content").Last()

Callers

nothing calls this directly

Calls 5

DocFunction · 0.85
assertEqualFunction · 0.85
FindMethod · 0.80
EndMethod · 0.80
FirstMethod · 0.80

Tested by

no test coverage detected