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

Function TestLastInvalid

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

Source from the content-addressed store, hash-verified

42}
43
44func TestLastInvalid(t *testing.T) {
45 sel := Doc().Find("").Last()
46 assertLength(t, sel.Nodes, 0)
47}
48
49func TestLastRollback(t *testing.T) {
50 sel := Doc().Find(".pvk-content")

Callers

nothing calls this directly

Calls 4

DocFunction · 0.85
assertLengthFunction · 0.85
LastMethod · 0.80
FindMethod · 0.80

Tested by

no test coverage detected