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

Function parsePigeon

compiler/parser/parser_test.go:49–55  ·  view source on GitHub ↗
(z string)

Source from the content-addressed store, hash-verified

47}
48
49func parsePigeon(z string) ([]byte, error) {
50 ast, err := parser.Parse("", []byte(z))
51 if err != nil {
52 return nil, err
53 }
54 return json.Marshal(ast)
55}
56
57// testQuery checks both that the parse is successful and that the
58// two resulting ASTs from the round trip through json marshal and

Callers 1

testQueryFunction · 0.85

Calls 2

ParseFunction · 0.92
MarshalMethod · 0.45

Tested by

no test coverage detected