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

Function TestIssue462

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

Source from the content-addressed store, hash-verified

2419}
2420
2421func TestIssue462(t *testing.T) {
2422 env := map[string]any{
2423 "foo": func() (string, error) {
2424 return "bar", nil
2425 },
2426 }
2427 _, err := expr.Compile(`$env.unknown(int())`, expr.Env(env))
2428 require.Error(t, err)
2429}
2430
2431func TestIssue_embedded_pointer_struct(t *testing.T) {
2432 var tests = []struct {

Callers

nothing calls this directly

Calls 3

CompileFunction · 0.92
EnvStruct · 0.92
ErrorFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…