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

Function TestFirst

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

Source from the content-addressed store, hash-verified

5)
6
7func TestFirst(t *testing.T) {
8 sel := Doc().Find(".pvk-content").First()
9 assertLength(t, sel.Nodes, 1)
10}
11
12func TestFirstEmpty(t *testing.T) {
13 sel := Doc().Find(".pvk-zzcontentzz").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