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

Function runExampleWithOptions

script/script_test.go:978–993  ·  view source on GitHub ↗
(opts LuaOptions, ctx *testContext)

Source from the content-addressed store, hash-verified

976}
977
978func runExampleWithOptions(opts LuaOptions, ctx *testContext) {
979 o := log.StandardLogger().Out
980 f := log.StandardLogger().Formatter
981 defer func() {
982 log.SetOutput(o)
983 log.SetFormatter(f)
984 }()
985
986 log.SetOutput(os.Stdout)
987 log.SetFormatter(&exampleLogFormatter{})
988
989 _, err := runFilter(opts, ctx)
990 if err != nil {
991 log.Errorf("%v", err)
992 }
993}
994
995type exampleLogFormatter struct {
996}

Callers 5

runExampleFunction · 0.85

Calls 4

runFilterFunction · 0.85
SetOutputMethod · 0.80
SetFormatterMethod · 0.80
ErrorfMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…