setExperiment sets the experiment flag with the given name to the given value.
(e *Experiment, name string, enabled bool)
| 84 | |
| 85 | // setExperiment sets the experiment flag with the given name to the given value. |
| 86 | func setExperiment(e *Experiment, name string, enabled bool) { |
| 87 | switch strings.ToLower(name) { |
| 88 | case "analyzerv2": |
| 89 | e.AnalyzerV2 = enabled |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | // Enabled returns a slice of all enabled experiment names. |
| 94 | func (e Experiment) Enabled() []string { |
no outgoing calls
no test coverage detected