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

Function TestLastRollback

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

Source from the content-addressed store, hash-verified

47}
48
49func TestLastRollback(t *testing.T) {
50 sel := Doc().Find(".pvk-content")
51 sel2 := sel.Last().End()
52 assertEqual(t, sel, sel2)
53}
54
55func TestEq(t *testing.T) {
56 sel := Doc().Find(".pvk-content").Eq(1)

Callers

nothing calls this directly

Calls 5

DocFunction · 0.85
assertEqualFunction · 0.85
FindMethod · 0.80
EndMethod · 0.80
LastMethod · 0.80

Tested by

no test coverage detected