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

Function createAppRepo

cf/api/applications/applications_test.go:662–669  ·  view source on GitHub ↗
(requests []testnet.TestRequest)

Source from the content-addressed store, hash-verified

660})
661
662func createAppRepo(requests []testnet.TestRequest) (ts *httptest.Server, handler *testnet.TestHandler, repo Repository) {
663 ts, handler = testnet.NewServer(requests)
664 configRepo := testconfig.NewRepositoryWithDefaults()
665 configRepo.SetAPIEndpoint(ts.URL)
666 gateway := net.NewCloudControllerGateway(configRepo, time.Now, new(terminalfakes.FakeUI), new(tracefakes.FakePrinter), "")
667 repo = NewCloudControllerRepository(configRepo, gateway)
668 return
669}

Callers 1

Calls 2

SetAPIEndpointMethod · 0.65

Tested by

no test coverage detected