MCPcopy Create free account
hub / github.com/andybalholm/cascadia / nodeString

Function nodeString

selector_test.go:33–39  ·  view source on GitHub ↗
(n *html.Node)

Source from the content-addressed store, hash-verified

31}
32
33func nodeString(n *html.Node) string {
34 buf := bytes.NewBufferString("")
35 if err := html.Render(buf, n); err != nil {
36 log.Fatal(err)
37 }
38 return buf.String()
39}
40
41var selectorTests = []selectorTest{
42 {

Callers 4

TestSpecificityFunction · 0.85
TestSelectorsFunction · 0.85
TestMatchersFunction · 0.85
TestPseudoElementFunction · 0.85

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected