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

Function TestEqRollback

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

Source from the content-addressed store, hash-verified

89}
90
91func TestEqRollback(t *testing.T) {
92 sel := Doc().Find(".pvk-content")
93 sel2 := sel.Eq(1).End()
94 assertEqual(t, sel, sel2)
95}
96
97func TestEqOutOfRangeRollback(t *testing.T) {
98 for _, sel := range []*Selection{Doc().Find(".pvk-content"), Doc().Find("missing")} {

Callers

nothing calls this directly

Calls 5

DocFunction · 0.85
assertEqualFunction · 0.85
FindMethod · 0.80
EndMethod · 0.80
EqMethod · 0.80

Tested by

no test coverage detected