(passed ...Config)
| 37 | }) |
| 38 | |
| 39 | func 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 | } |
no test coverage detected