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

Function TestFirstEmpty

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

Source from the content-addressed store, hash-verified

10}
11
12func TestFirstEmpty(t *testing.T) {
13 sel := Doc().Find(".pvk-zzcontentzz").First()
14 assertLength(t, sel.Nodes, 0)
15}
16
17func TestFirstInvalid(t *testing.T) {
18 sel := Doc().Find("").First()

Callers

nothing calls this directly

Calls 4

DocFunction · 0.85
assertLengthFunction · 0.85
FirstMethod · 0.80
FindMethod · 0.80

Tested by

no test coverage detected