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

Function ExampleLuaOptions_default

script/options_test.go:3–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1package script
2
3func ExampleLuaOptions_default() {
4 runExampleWithOptions(
5 LuaOptions{},
6 testScript(`
7 local base64 = require("base64")
8
9 function request(ctx, params)
10 print(table.concat({"Hello", "World"}, " "))
11 print(string.lower("Hello World"))
12 print(math.abs(-1))
13 print(base64.encode("Hello World"))
14 end
15 `),
16 )
17 // Output:
18 // Hello World
19 // hello world
20 // 1
21 // SGVsbG8gV29ybGQ=
22}
23
24const printTable = `
25function printTable(p, t)

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…