TestNoTailCall tests for failures when neither callee nor caller make a tailcall.
(t *testing.T)
| 195 | |
| 196 | // TestNoTailCall tests for failures when neither callee nor caller make a tailcall. |
| 197 | func TestNormalCall(t *testing.T) { |
| 198 | s := `function notailcall() return 5 end |
| 199 | return (notailcall())` |
| 200 | testNoPanicString(t, s) |
| 201 | } |
| 202 | |
| 203 | func TestVarArgMeta(t *testing.T) { |
| 204 | s := `function f(t, ...) return t, {...} end |
nothing calls this directly
no test coverage detected