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

Function parseReference

w3_test.go:31–41  ·  view source on GitHub ↗
(filename string)

Source from the content-addressed store, hash-verified

29}
30
31func parseReference(filename string) *html.Node {
32 f, err := os.Open(filename)
33 if err != nil {
34 log.Fatal(err)
35 }
36 node, err := html.Parse(f)
37 if err != nil {
38 log.Fatal(err)
39 }
40 return node
41}
42
43func getId(n *html.Node) string {
44 for _, attr := range n.Attr {

Callers 2

TestValidSelectorsFunction · 0.85
TestShakespeareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected