Skip to content

Do not zip out with in automagicaly #1

@corpix

Description

@corpix

lua/mapper/function_test.go

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions