(t testing.TB, name string, opts ...decls.FunctionOpt)
| 2905 | } |
| 2906 | |
| 2907 | func testFunction(t testing.TB, name string, opts ...decls.FunctionOpt) *decls.FunctionDecl { |
| 2908 | t.Helper() |
| 2909 | fn, err := decls.NewFunction(name, opts...) |
| 2910 | if err != nil { |
| 2911 | t.Fatalf("decls.NewFunction(%s) failed: %v", name, err) |
| 2912 | } |
| 2913 | return fn |
| 2914 | } |
| 2915 | |
| 2916 | func TestVarsInheritance(t *testing.T) { |
| 2917 | // Parent environment containing inherited variables 'y' and 'x' |
no test coverage detected