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

Function noEnv

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

Source from the content-addressed store, hash-verified

105}
106
107func noEnv(l *State) bool {
108 l.Field(RegistryIndex, "LUA_NOENV")
109 b := l.ToBoolean(-1)
110 l.Pop(1)
111 return b
112}
113
114func setPath(l *State, field, env, def string) {
115 if path := os.Getenv(env); path == "" || noEnv(l) {

Callers 1

setPathFunction · 0.85

Calls 3

FieldMethod · 0.80
ToBooleanMethod · 0.80
PopMethod · 0.80

Tested by

no test coverage detected