()
| 380 | } |
| 381 | |
| 382 | func newTestServer() *server { |
| 383 | return &server{ |
| 384 | startedErr: make(chan error, 1), |
| 385 | ready: make(chan struct{}), |
| 386 | servingTasksDone: make(chan struct{}), |
| 387 | channelz: channelz.RegisterServer("test server"), |
| 388 | } |
| 389 | } |
| 390 | |
| 391 | // start starts server. Other goroutines should block on s.readyChan for further operations. |
| 392 | func (s *server) start(t *testing.T, port int, serverConfig *ServerConfig, ht hType) { |
no test coverage detected