(t *testing.T)
| 1563 | } |
| 1564 | |
| 1565 | func 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 | |
| 1573 | func TestExpr_map_default_values(t *testing.T) { |
| 1574 | env := map[string]any{ |