(opts LuaOptions, ctx *testContext)
| 976 | } |
| 977 | |
| 978 | func 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 | |
| 995 | type exampleLogFormatter struct { |
| 996 | } |
no test coverage detected
searching dependent graphs…