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

Function NewTestClient

api/cfnetworking/cfnetv1/cfnetv1_suite_test.go:39–55  ·  view source on GitHub ↗
(passed ...Config)

Source from the content-addressed store, hash-verified

37})
38
39func NewTestClient(passed ...Config) *Client {
40 var config Config
41 if len(passed) > 0 {
42 config = passed[0]
43 } else {
44 config = Config{}
45 }
46 config.AppName = "CF Networking V1 Test"
47 config.AppVersion = "Unknown"
48 config.SkipSSLValidation = true
49
50 if config.URL == "" {
51 config.URL = server.URL()
52 }
53
54 return NewClient(config)
55}

Callers 1

policy_test.goFile · 0.70

Calls 2

NewClientFunction · 0.70
URLMethod · 0.45

Tested by

no test coverage detected