MCPcopy Create free account
hub / github.com/araddon/qlbridge / TestNodeJson

Function TestNodeJson

expr/node_test.go:72–81  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

70}
71
72func TestNodeJson(t *testing.T) {
73 t.Parallel()
74 for _, exprText := range pbTests {
75 exp, err := expr.ParseExpression(exprText)
76 assert.Equal(t, err, nil, "Should not error parse expr but got ", err, "for ", exprText)
77 by, err := json.MarshalIndent(exp.Expr(), "", " ")
78 assert.Equal(t, err, nil)
79 u.Debugf("%s", string(by))
80 }
81}
82
83var _ = u.EMPTY
84

Callers

nothing calls this directly

Calls 3

ParseExpressionFunction · 0.92
EqualMethod · 0.65
ExprMethod · 0.65

Tested by

no test coverage detected