MCPcopy Index your code
hub / github.com/Shopify/go-lua / TestTailCallSameFn

Function TestTailCallSameFn

vm_test.go:187–194  ·  view source on GitHub ↗

TestTailCallSameFn tests for failures where only the callee is making a tailcall.

(t *testing.T)

Source from the content-addressed store, hash-verified

185
186// TestTailCallSameFn tests for failures where only the callee is making a tailcall.
187func TestTailCallSameFn(t *testing.T) {
188 s := `function tailcall(n, m)
189 if n > m then return n end
190 return tailcall(n + 1, m)
191 end
192 return (tailcall(0, 5))`
193 testNoPanicString(t, s)
194}
195
196// TestNoTailCall tests for failures when neither callee nor caller make a tailcall.
197func TestNormalCall(t *testing.T) {

Callers

nothing calls this directly

Calls 1

testNoPanicStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…