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

Function TestNoInterfaceMethodWithNil

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

Source from the content-addressed store, hash-verified

27}
28
29func TestNoInterfaceMethodWithNil(t *testing.T) {
30 program, err := expr.Compile(`foo.Add(1, nil)`)
31 require.NoError(t, err)
32
33 _, err = expr.Run(program, Env{Foo: &FooImpl{}})
34 require.NoError(t, err)
35}
36
37func TestNoInterfaceMethodWithNil_with_env(t *testing.T) {
38 program, err := expr.Compile(`foo.Add(1, nil)`, expr.Env(Env{}))

Callers

nothing calls this directly

Calls 3

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