()
| 30 | end` |
| 31 | |
| 32 | func 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 | |
| 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 | |
| 88 | func ExampleLuaOptions_enableModules() { |
| 89 | runExampleWithOptions( |
nothing calls this directly
no test coverage detected
searching dependent graphs…