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

Function createServiceSummaryRepo

cf/api/service_summary_test.go:99–106  ·  view source on GitHub ↗
(req testnet.TestRequest)

Source from the content-addressed store, hash-verified

97})
98
99func createServiceSummaryRepo(req testnet.TestRequest) (ts *httptest.Server, handler *testnet.TestHandler, repo ServiceSummaryRepository) {
100 ts, handler = testnet.NewServer([]testnet.TestRequest{req})
101 configRepo := testconfig.NewRepositoryWithDefaults()
102 configRepo.SetAPIEndpoint(ts.URL)
103 gateway := net.NewCloudControllerGateway(configRepo, time.Now, new(terminalfakes.FakeUI), new(tracefakes.FakePrinter), "")
104 repo = NewCloudControllerServiceSummaryRepository(configRepo, gateway)
105 return
106}

Callers 1

Tested by

no test coverage detected