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

Function TestRemoveRoot

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

Source from the content-addressed store, hash-verified

319}
320
321func TestRemoveRoot(t *testing.T) {
322 doc := Doc2Clone()
323 doc.Find("html").Remove()
324
325 assertLength(t, doc.Find("html").Nodes, 0)
326 printSel(t, doc.Selection)
327}
328
329func TestRemoveFiltered(t *testing.T) {
330 doc := Doc2Clone()

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…