MCPcopy Create free account
hub / github.com/Shopify/goluago / RunLuaTestFile

Function RunLuaTestFile

pkg/testing/testing.go:16–20  ·  view source on GitHub ↗
(t *testing.T, requireCallback func(l *lua.State), luaSourceFileName string)

Source from the content-addressed store, hash-verified

14}
15
16func RunLuaTestFile(t *testing.T, requireCallback func(l *lua.State), luaSourceFileName string) {
17 runLuaTest(t, requireCallback, func(l *lua.State) error {
18 return lua.LoadFile(l, luaSourceFileName, "")
19 })
20}
21
22func runLuaTest(t *testing.T, requireCallback func(l *lua.State), loadCallback func(l *lua.State) error) {
23 l := lua.NewState()

Callers

nothing calls this directly

Calls 1

runLuaTestFunction · 0.85

Tested by

no test coverage detected