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

Function load

parser_test.go:12–17  ·  view source on GitHub ↗
(l *State, t *testing.T, fileName string)

Source from the content-addressed store, hash-verified

10)
11
12func load(l *State, t *testing.T, fileName string) *luaClosure {
13 if err := LoadFile(l, fileName, "bt"); err != nil {
14 return nil
15 }
16 return l.ToValue(-1).(*luaClosure)
17}
18
19func TestParser(t *testing.T) {
20 l := NewState()

Callers 2

TestParserFunction · 0.85
protectedTestParserFunction · 0.85

Calls 2

LoadFileFunction · 0.85
ToValueMethod · 0.80

Tested by

no test coverage detected