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

Function newFilter

script/script_test.go:920–930  ·  view source on GitHub ↗
(opts LuaOptions, script string, params ...string)

Source from the content-addressed store, hash-verified

918}
919
920func newFilter(opts LuaOptions, script string, params ...string) (filters.Filter, error) {
921 ls, err := NewLuaScriptWithOptions(opts)
922 if err != nil {
923 return nil, err
924 }
925 args := []interface{}{script}
926 for _, p := range params {
927 args = append(args, p)
928 }
929 return ls.CreateFilter(args)
930}
931
932func runFilter(opts LuaOptions, test *testContext) (filters.FilterContext, error) {
933 scr, err := newFilter(opts, test.script, test.params...)

Callers 3

runFilterFunction · 0.85
BenchmarkNewStateFunction · 0.85
benchmarkRequestFunction · 0.85

Calls 2

NewLuaScriptWithOptionsFunction · 0.85
CreateFilterMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…