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

Function NewTransportForTesting

commands/base_command.go:289–291  ·  view source on GitHub ↗

NewTransportForTesting creates a transport for testing purposes

(isSslDisabled bool)

Source from the content-addressed store, hash-verified

287
288// NewTransportForTesting creates a transport for testing purposes
289func NewTransportForTesting(isSslDisabled bool) http.RoundTripper {
290 return newTransport(isSslDisabled)
291}
292
293func getNonProtectedMethods() map[string]struct{} {
294 nonProtectedMethods := make(map[string]struct{}, 4)

Callers 1

Calls 1

newTransportFunction · 0.85

Tested by

no test coverage detected