(t *testing.T)
| 15 | } |
| 16 | |
| 17 | func TestIssue756(t *testing.T) { |
| 18 | env := map[string]any{ |
| 19 | "_goctx_": context.TODO(), |
| 20 | "_g_": map[string]*X{ |
| 21 | "rpc": {}, |
| 22 | }, |
| 23 | "text": "еуче", |
| 24 | } |
| 25 | exprStr := `let v = _g_.rpc.HelloCtx(text); v` |
| 26 | program, err := expr.Compile(exprStr, expr.Env(env), expr.WithContext("_goctx_")) |
| 27 | require.NoError(t, err) |
| 28 | |
| 29 | _, err = expr.Run(program, env) |
| 30 | require.NoError(t, err) |
| 31 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…