MCPcopy Create free account
hub / github.com/expr-lang/expr / TestNoInterfaceMethodWithNil_with_env

Function TestNoInterfaceMethodWithNil_with_env

test/issues/688/issue_test.go:37–43  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

35}
36
37func TestNoInterfaceMethodWithNil_with_env(t *testing.T) {
38 program, err := expr.Compile(`foo.Add(1, nil)`, expr.Env(Env{}))
39 require.NoError(t, err)
40
41 _, err = expr.Run(program, Env{Foo: &FooImpl{}})
42 require.NoError(t, err)
43}
44
45func TestNoInterfaceMethodWithNil_with_any(t *testing.T) {
46 program, err := expr.Compile(`Any(nil)`, expr.Env(Env{}))

Callers

nothing calls this directly

Calls 4

CompileFunction · 0.92
EnvStruct · 0.92
NoErrorFunction · 0.92
RunFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…