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

Function TestLastEmpty

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

Source from the content-addressed store, hash-verified

37}
38
39func TestLastEmpty(t *testing.T) {
40 sel := Doc().Find(".pvk-zzcontentzz").Last()
41 assertLength(t, sel.Nodes, 0)
42}
43
44func TestLastInvalid(t *testing.T) {
45 sel := Doc().Find("").Last()

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