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

Function TestExpr_wierd_cases

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

Source from the content-addressed store, hash-verified

2810}
2811
2812func TestExpr_wierd_cases(t *testing.T) {
2813 env := map[string]any{}
2814
2815 _, err := expr.Compile(`A(A)`, expr.Env(env))
2816 require.Error(t, err)
2817 require.Contains(t, err.Error(), "unknown name A")
2818}
2819
2820func TestIssue785_get_nil(t *testing.T) {
2821 exprStrs := []string{

Callers

nothing calls this directly

Calls 5

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