MCPcopy Index your code
hub / github.com/devfile/devworkspace-operator / InitializeForTesting

Function InitializeForTesting

pkg/infrastructure/cluster.go:58–61  ·  view source on GitHub ↗

InitializeForTesting is used to mock running on a specific type of cluster (Kubernetes, OpenShift) in testing code.

(currentInfrastructure Type)

Source from the content-addressed store, hash-verified

56
57// InitializeForTesting is used to mock running on a specific type of cluster (Kubernetes, OpenShift) in testing code.
58func InitializeForTesting(currentInfrastructure Type) {
59 current = currentInfrastructure
60 initialized = true
61}
62
63func IsInitialized() bool {
64 return initialized

Calls

no outgoing calls