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

Function TestWrapInnerNoWrapper

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

Source from the content-addressed store, hash-verified

619}
620
621func TestWrapInnerNoWrapper(t *testing.T) {
622 doc := Doc2Clone()
623 doc.Find(".one").WrapInner(".not-exist")
624
625 twos := doc.Find(".two")
626 assertLength(t, twos.Nodes, 2)
627 assertLength(t, doc.Find(".one").Nodes, 2)
628 assertLength(t, doc.Find(".one .two").Nodes, 0)
629
630 printSel(t, doc.Selection)
631}
632
633func TestWrapInnerHtml(t *testing.T) {
634 doc := Doc2Clone()

Callers

nothing calls this directly

Calls 5

Doc2CloneFunction · 0.85
assertLengthFunction · 0.85
printSelFunction · 0.85
WrapInnerMethod · 0.80
FindMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…