MCPcopy
hub / github.com/expr-lang/expr / TestExpr_eval_with_env

Function TestExpr_eval_with_env

expr_test.go:1559–1563  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1557}
1558
1559func TestExpr_eval_with_env(t *testing.T) {
1560 _, err := expr.Eval("true", expr.Env(map[string]any{}))
1561 assert.Error(t, err)
1562 assert.Contains(t, err.Error(), "misused")
1563}
1564
1565func TestExpr_fetch_from_func(t *testing.T) {
1566 _, err := expr.Eval("foo.Value", map[string]any{

Callers

nothing calls this directly

Calls 5

EvalFunction · 0.92
EnvStruct · 0.92
ErrorFunction · 0.92
ContainsFunction · 0.92
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…