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

Function createSpacesRepo

cf/api/spaces/spaces_test.go:463–470  ·  view source on GitHub ↗
(reqs ...testnet.TestRequest)

Source from the content-addressed store, hash-verified

461}
462
463func createSpacesRepo(reqs ...testnet.TestRequest) (ts *httptest.Server, handler *testnet.TestHandler, repo SpaceRepository) {
464 ts, handler = testnet.NewServer(reqs)
465 configRepo := testconfig.NewRepositoryWithDefaults()
466 configRepo.SetAPIEndpoint(ts.URL)
467 gateway := net.NewCloudControllerGateway(configRepo, time.Now, new(terminalfakes.FakeUI), new(tracefakes.FakePrinter), "")
468 repo = NewCloudControllerSpaceRepository(configRepo, gateway)
469 return
470}

Callers 3

spaces_test.goFile · 0.85

Calls 2

SetAPIEndpointMethod · 0.65

Tested by

no test coverage detected