MCPcopy
hub / github.com/cloudfoundry/cli / ExampleWithHelloWorldApp

Function ExampleWithHelloWorldApp

integration/helpers/app_test.go:10–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8)
9
10func ExampleWithHelloWorldApp() {
11 var appName string
12
13 When("the app exists", func() {
14 BeforeEach(func() {
15 appName = helpers.PrefixedRandomName("app")
16
17 helpers.WithHelloWorldApp(func(appDir string) {
18 Eventually(helpers.CustomCF(helpers.CFEnv{WorkingDirectory: appDir}, "push", appName)).Should(Exit(0))
19 })
20 })
21 })
22}

Callers

nothing calls this directly

Calls 3

PrefixedRandomNameFunction · 0.92
WithHelloWorldAppFunction · 0.92
CustomCFFunction · 0.92

Tested by

no test coverage detected