| 368 | } |
| 369 | |
| 370 | type server struct { |
| 371 | lis net.Listener |
| 372 | port string |
| 373 | startedErr chan error // error (or nil) with server start value |
| 374 | mu sync.Mutex |
| 375 | conns map[ServerTransport]net.Conn |
| 376 | h *testStreamHandler |
| 377 | ready chan struct{} |
| 378 | channelz *channelz.Server |
| 379 | servingTasksDone chan struct{} |
| 380 | } |
| 381 | |
| 382 | func newTestServer() *server { |
| 383 | return &server{ |
nothing calls this directly
no outgoing calls
no test coverage detected