-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Lines 172 to 200 in 5e74da8
| // FIXME: This one is broken, we should not zip out args with in args automagicaly | |
| // { | |
| // name: "multiple return value", | |
| // code: `local m = require("module"); m.fn1(m.fn2(), m.fn3())`, | |
| // args: map[string][]interface{}{ | |
| // "fn1": []interface{}{1, "hello", 1, "hello"}, | |
| // "fn2": nil, | |
| // }, | |
| // exports: map[string]func(*testing.T, func(...interface{})) interface{}{ | |
| // "fn1": func(t *testing.T, callback func(...interface{})) interface{} { | |
| // return func(x int, y string, xx int, yy string) { | |
| // callback(x, y, xx, yy) | |
| // } | |
| // }, | |
| // "fn2": func(t *testing.T, callback func(...interface{})) interface{} { | |
| // return func() (int, string) { | |
| // callback() | |
| // return 1, "hello" | |
| // } | |
| // }, | |
| // "fn3": func(t *testing.T, callback func(...interface{})) interface{} { | |
| // return func() (int, string) { | |
| // callback() | |
| // return 1, "hello" | |
| // } | |
| // }, | |
| // }, | |
| // err: nil, | |
| // }, |
Metadata
Metadata
Assignees
Labels
No labels