(baseAddress string, n int)
| 67 | } |
| 68 | |
| 69 | func generateTestAddr(baseAddress string, n int) string { |
| 70 | ip := make(net.IP, net.IPv6len) |
| 71 | new(big.Int).Add(new(big.Int).SetBytes(net.ParseIP(baseAddress)), big.NewInt(int64(n))).FillBytes(ip) |
| 72 | return ip.String() |
| 73 | } |
| 74 | |
| 75 | func generateTestAddrs(host string) (clusterPort int, clusterAddr, proxyAddr, httpAddr string) { |
| 76 | clusterPort = generateTestPort() |
no test coverage detected