MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / GetConfigForTesting

Function GetConfigForTesting

pkg/config/sync.go:91–97  ·  view source on GitHub ↗
(customConfig *controller.OperatorConfiguration)

Source from the content-addressed store, hash-verified

89}
90
91func GetConfigForTesting(customConfig *controller.OperatorConfiguration) *controller.OperatorConfiguration {
92 configMutex.Lock()
93 defer configMutex.Unlock()
94 testConfig := defaultConfig.DeepCopy()
95 mergeConfig(customConfig, testConfig)
96 return testConfig
97}
98
99func SetGlobalConfigForTesting(testConfig *controller.OperatorConfiguration) {
100 configMutex.Lock()

Callers 5

suite_test.goFile · 0.92
suite_test.goFile · 0.92
getTestDevWorkspaceFunction · 0.92

Calls 2

mergeConfigFunction · 0.85
DeepCopyMethod · 0.45

Tested by 2

getTestDevWorkspaceFunction · 0.74