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

Function RunLuaTestString

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

Source from the content-addressed store, hash-verified

8)
9
10func RunLuaTestString(t *testing.T, requireCallback func(l *lua.State), luaSource string) {
11 runLuaTest(t, requireCallback, func(l *lua.State) error {
12 return lua.LoadString(l, luaSource)
13 })
14}
15
16func RunLuaTestFile(t *testing.T, requireCallback func(l *lua.State), luaSourceFileName string) {
17 runLuaTest(t, requireCallback, func(l *lua.State) error {

Callers

nothing calls this directly

Calls 1

runLuaTestFunction · 0.85

Tested by

no test coverage detected