MCPcopy Create free account
hub / github.com/zalando/skipper / ExampleLuaOptions_printGlobals

Function ExampleLuaOptions_printGlobals

script/options_test.go:32–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30end`
31
32func ExampleLuaOptions_printGlobals() {
33 runExampleWithOptions(
34 LuaOptions{},
35 testScript(printTable+`
36 function request()
37 printTable("", _G)
38 end
39 `),
40 )
41 // Output:
42 // _G
43 // _GOPHER_LUA_VERSION
44 // _VERSION
45 // _printregs
46 // assert
47 // channel
48 // collectgarbage
49 // coroutine
50 // debug
51 // dofile
52 // error
53 // getfenv
54 // getmetatable
55 // io
56 // ipairs
57 // load
58 // loadfile
59 // loadstring
60 // math
61 // module
62 // newproxy
63 // next
64 // os
65 // package
66 // pairs
67 // pcall
68 // print
69 // printTable
70 // rawequal
71 // rawget
72 // rawset
73 // request
74 // require
75 // select
76 // setfenv
77 // setmetatable
78 // sleep
79 // string
80 // table
81 // tonumber
82 // tostring
83 // type
84 // unpack
85 // xpcall
86}
87
88func ExampleLuaOptions_enableModules() {
89 runExampleWithOptions(

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…