(t *testing.T)
| 76 | } |
| 77 | |
| 78 | func TestFakeServer(t *testing.T) { |
| 79 | t.Parallel() |
| 80 | ln, err := net.Listen("tcp", "localhost:0") |
| 81 | if err != nil { |
| 82 | t.Fatalf("failed to listen: %v", err) |
| 83 | } |
| 84 | t.Logf("running test server on %s", ln.Addr()) |
| 85 | defer ln.Close() |
| 86 | srv := &testServer{} |
| 87 | go srv.Serve(ln) |
| 88 | |
| 89 | testWithClient(t, New(ln.Addr().String())) |
| 90 | } |
| 91 | |
| 92 | func TestTLS(t *testing.T) { |
| 93 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…