MCPcopy Index your code
hub / github.com/zalando/skipper / ExampleLuaOptions_disableAll

Function ExampleLuaOptions_disableAll

script/options_test.go:135–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133}
134
135func ExampleLuaOptions_disableAll() {
136 runExampleWithOptions(
137 LuaOptions{
138 // use non-existing module
139 Modules: []string{"none"},
140 },
141 testScript(`function request() print("test") end`),
142 )
143 // Output:
144 // Error calling request from function request() print("test") end: <script>:1: attempt to call a non-function object
145 // stack traceback:
146 // <script>:1: in main chunk
147 // [G]: ?
148}

Callers

nothing calls this directly

Calls 2

runExampleWithOptionsFunction · 0.85
testScriptFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…