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

Function TestNoInterfaceMethodWithNil_with_any

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

Source from the content-addressed store, hash-verified

43}
44
45func TestNoInterfaceMethodWithNil_with_any(t *testing.T) {
46 program, err := expr.Compile(`Any(nil)`, expr.Env(Env{}))
47 require.NoError(t, err)
48
49 out, err := expr.Run(program, Env{Foo: &FooImpl{}})
50 require.NoError(t, err)
51 require.Equal(t, nil, out)
52}

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…