(enableExperimentalFunctions, enableHoltWinters bool)
| 11 | var functions = buildFunctions(true) |
| 12 | |
| 13 | func Setup(enableExperimentalFunctions, enableHoltWinters bool) { |
| 14 | promqlparser.EnableExperimentalFunctions = enableExperimentalFunctions |
| 15 | buildFunctions(enableHoltWinters) |
| 16 | } |
| 17 | |
| 18 | func buildFunctions(enableHoltWinters bool) map[string]*promqlparser.Function { |
| 19 | fns := make(map[string]*promqlparser.Function, len(promqlparser.Functions)) |
nothing calls this directly
no test coverage detected