mockServer is used to test the server group can start and stop multiple servers simultaneously.
| 67 | // mockServer is used to test the server group can start |
| 68 | // and stop multiple servers simultaneously. |
| 69 | type mockServer struct { |
| 70 | started chan struct{} |
| 71 | startClosed bool |
| 72 | stopped chan struct{} |
| 73 | stopClosed bool |
| 74 | errors chan error |
| 75 | } |
| 76 | |
| 77 | func newMockServer() *mockServer { |
| 78 | return &mockServer{ |
nothing calls this directly
no outgoing calls
no test coverage detected