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

Function newCurlDependencies

cf/api/curl_test.go:232–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230}
231
232func newCurlDependencies() (deps curlDependencies) {
233 deps.config = testconfig.NewRepository()
234 deps.config.SetAccessToken("BEARER my_access_token")
235 deps.gateway = net.NewCloudControllerGateway(deps.config, time.Now, new(terminalfakes.FakeUI), new(tracefakes.FakePrinter), "")
236 return
237}
238
239func removeWhitespace(body string) string {
240 body = strings.Replace(body, " ", "", -1)

Callers 1

curl_test.goFile · 0.85

Calls 1

SetAccessTokenMethod · 0.65

Tested by

no test coverage detected