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

Function TestExpr_fetch_from_func

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

Source from the content-addressed store, hash-verified

1563}
1564
1565func TestExpr_fetch_from_func(t *testing.T) {
1566 _, err := expr.Eval("foo.Value", map[string]any{
1567 "foo": func() {},
1568 })
1569 assert.Error(t, err)
1570 assert.Contains(t, err.Error(), "cannot fetch Value from func()")
1571}
1572
1573func TestExpr_map_default_values(t *testing.T) {
1574 env := map[string]any{

Callers

nothing calls this directly

Calls 4

EvalFunction · 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…