MCPcopy Create free account
hub / github.com/brimdata/super / parse

Function parse

sup/sup_test.go:16–22  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

14)
15
16func parse(path string) (ast.Value, error) {
17 file, err := fs.Open(path)
18 if err != nil {
19 return nil, err
20 }
21 return sup.NewParser(file).ParseValue()
22}
23
24const testFile = "test.sup"
25

Callers 2

TestSUPParserFunction · 0.70
analyzeFunction · 0.70

Calls 3

OpenFunction · 0.92
NewParserFunction · 0.92
ParseValueMethod · 0.45

Tested by

no test coverage detected