MCPcopy Index your code
hub / github.com/cloudfoundry/cli / SetupSynchronizedSuite

Function SetupSynchronizedSuite

integration/helpers/config.go:66–72  ·  view source on GitHub ↗

SetupSynchronizedSuite runs a setup function in its own CF context, creating and destroying a home directory around it.

(setup func())

Source from the content-addressed store, hash-verified

64// SetupSynchronizedSuite runs a setup function in its own CF context, creating
65// and destroying a home directory around it.
66func SetupSynchronizedSuite(setup func()) {
67 homeDir := SetHomeDir()
68 SetAPI()
69 LoginCF()
70 setup()
71 DestroyHomeDir(homeDir)
72}
73
74// DestroyHomeDir safely removes the given directory checking for errors.
75func DestroyHomeDir(homeDir string) {

Callers 5

push_suite_test.goFile · 0.92
CommonGinkgoSetupFunction · 0.92

Calls 5

SetHomeDirFunction · 0.85
SetAPIFunction · 0.85
LoginCFFunction · 0.85
setupFunction · 0.85
DestroyHomeDirFunction · 0.85

Tested by

no test coverage detected