(host string)
| 73 | } |
| 74 | |
| 75 | func generateTestAddrs(host string) (clusterPort int, clusterAddr, proxyAddr, httpAddr string) { |
| 76 | clusterPort = generateTestPort() |
| 77 | clusterAddr = net.JoinHostPort(host, strconv.Itoa(clusterPort)) |
| 78 | proxyPort := generateTestPort() |
| 79 | proxyAddr = net.JoinHostPort(host, strconv.Itoa(proxyPort)) |
| 80 | httpPort := generateTestPort() |
| 81 | httpAddr = net.JoinHostPort(host, strconv.Itoa(httpPort)) |
| 82 | return clusterPort, clusterAddr, proxyAddr, httpAddr |
| 83 | } |
| 84 | |
| 85 | func TestProxy_ListenAndServe(t *testing.T) { |
| 86 | ctx, cancel := context.WithCancel(context.Background()) |
no test coverage detected