MCPcopy Create free account
hub / github.com/ddev/ddev / SetPerformanceMode

Method SetPerformanceMode

pkg/ddevapp/performance_mode.go:19–25  ·  view source on GitHub ↗

SetPerformanceMode sets the performance mode config.

(performanceMode string)

Source from the content-addressed store, hash-verified

17
18// SetPerformanceMode sets the performance mode config.
19func (app *DdevApp) SetPerformanceMode(performanceMode string) *DdevApp {
20 if types.IsValidPerformanceMode(performanceMode, types.ConfigTypeProject) {
21 app.PerformanceMode = performanceMode
22 }
23
24 return app
25}

Callers 6

TestMutagenSimpleFunction · 0.95
TestMutagenConfigChangeFunction · 0.95
TestMutagenDiagnoseFunction · 0.95
NewAppFunction · 0.95
handleGlobalConfigFunction · 0.45
handleMainConfigArgsFunction · 0.45

Calls 1

IsValidPerformanceModeFunction · 0.92

Tested by 3

TestMutagenSimpleFunction · 0.76
TestMutagenConfigChangeFunction · 0.76
TestMutagenDiagnoseFunction · 0.76