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

Function TestTailCallRecursiveDiffFn

vm_test.go:180–184  ·  view source on GitHub ↗

TestTailCallRecursiveDiffFn tests for failures where only the caller is making a tailcall.

(t *testing.T)

Source from the content-addressed store, hash-verified

178
179// TestTailCallRecursiveDiffFn tests for failures where only the caller is making a tailcall.
180func TestTailCallRecursiveDiffFn(t *testing.T) {
181 s := `function tailcall(n) return n+1 end
182 return tailcall(5)`
183 testNoPanicString(t, s)
184}
185
186// TestTailCallSameFn tests for failures where only the callee is making a tailcall.
187func TestTailCallSameFn(t *testing.T) {

Callers

nothing calls this directly

Calls 1

testNoPanicStringFunction · 0.85

Tested by

no test coverage detected