newTest returns a new test using the provided testing.T and environment. It is returned with default values. Tests should modify it before calling its startServer and clientConn methods.
(t *testing.T)
| 152 | // environment. It is returned with default values. Tests should |
| 153 | // modify it before calling its startServer and clientConn methods. |
| 154 | func newTest(t *testing.T) *test { |
| 155 | te := &test{ |
| 156 | t: t, |
| 157 | } |
| 158 | return te |
| 159 | } |
| 160 | |
| 161 | type listenerWrapper struct { |
| 162 | net.Listener |