(secure bool, n int)
| 179 | } |
| 180 | |
| 181 | func newEmbedURLs(secure bool, n int) (urls []url.URL) { |
| 182 | scheme := "unix" |
| 183 | if secure { |
| 184 | scheme = "unixs" |
| 185 | } |
| 186 | for i := 0; i < n; i++ { |
| 187 | u, _ := url.Parse(fmt.Sprintf("%s://localhost:%d%06d", scheme, os.Getpid(), i)) |
| 188 | urls = append(urls, *u) |
| 189 | } |
| 190 | return urls |
| 191 | } |
| 192 | |
| 193 | func setupEmbedCfg(cfg *embed.Config, curls []url.URL, purls []url.URL) { |
| 194 | cfg.Logger = "zap" |
no test coverage detected
searching dependent graphs…