MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / setExperiment

Function setExperiment

internal/opts/experiment.go:86–91  ·  view source on GitHub ↗

setExperiment sets the experiment flag with the given name to the given value.

(e *Experiment, name string, enabled bool)

Source from the content-addressed store, hash-verified

84
85// setExperiment sets the experiment flag with the given name to the given value.
86func 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.
94func (e Experiment) Enabled() []string {

Callers 1

ExperimentFromStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected