MCPcopy Create free account
hub / github.com/cloudfoundry/multiapps-cli-plugin / newRestClient

Function newRestClient

clients/restclient/rest_client_test.go:32–36  ·  view source on GitHub ↗
(statusCode int)

Source from the content-addressed store, hash-verified

30})
31
32func newRestClient(statusCode int) restclient.RestClientOperations {
33 tokenFactory := testutil.NewCustomTokenFactory("test-token")
34 roundTripper := testutil.NewCustomTransport(statusCode)
35 return restclient.NewRestClient("http://localhost:1000", roundTripper, tokenFactory)
36}

Callers 1

Calls 3

NewCustomTokenFactoryFunction · 0.92
NewCustomTransportFunction · 0.92
NewRestClientFunction · 0.92

Tested by

no test coverage detected