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

Function searcherLua

load.go:52–59  ·  view source on GitHub ↗
(l *State)

Source from the content-addressed store, hash-verified

50}
51
52func searcherLua(l *State) int {
53 name := CheckString(l, 1)
54 filename, err := findFile(l, name, "path", string(filepath.Separator))
55 if err != nil {
56 return 1 // Module not found in this path.
57 }
58 return checkLoad(l, LoadFile(l, filename, "") == nil, filename)
59}
60
61func searcherPreload(l *State) int {
62 name := CheckString(l, 1)

Callers

nothing calls this directly

Calls 4

CheckStringFunction · 0.85
findFileFunction · 0.85
checkLoadFunction · 0.85
LoadFileFunction · 0.85

Tested by

no test coverage detected