MCPcopy Index your code
hub / github.com/expr-lang/expr / TestIssue739

Function TestIssue739

test/issues/739/issue_test.go:10–19  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestIssue739(t *testing.T) {
11 jsonString := `{"Num": 1}`
12 env := map[string]any{
13 "aJSONString": &jsonString,
14 }
15
16 result, err := expr.Eval("fromJSON(aJSONString)", env)
17 require.NoError(t, err)
18 require.Contains(t, result, "Num")
19}

Callers

nothing calls this directly

Calls 3

EvalFunction · 0.92
NoErrorFunction · 0.92
ContainsFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…