MCPcopy
hub / github.com/PuerkitoBio/goquery / TestAfterWithRemoved

Function TestAfterWithRemoved

manipulation_test.go:32–40  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

30}
31
32func TestAfterWithRemoved(t *testing.T) {
33 doc := Doc2Clone()
34 s := doc.Find("#main").Remove()
35 s.After("#nf6")
36
37 assertLength(t, s.Find("#nf6").Nodes, 0)
38 assertLength(t, doc.Find("#nf6").Nodes, 0)
39 printSel(t, doc.Selection)
40}
41
42func TestAfterSelection(t *testing.T) {
43 doc := Doc2Clone()

Callers

nothing calls this directly

Calls 6

Doc2CloneFunction · 0.85
assertLengthFunction · 0.85
printSelFunction · 0.85
RemoveMethod · 0.80
FindMethod · 0.80
AfterMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…