1 // Copyright 2016 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
11 func testConn(t *testing.T, mp MakePipe) {
12 // Use subtests on Go 1.7 and above since it is better organized.
13 t.Run("BasicIO", func(t *testing.T) { timeoutWrapper(t, mp, testBasicIO) })
14 t.Run("PingPong", func(t *testing.T) { timeoutWrapper(t, mp, testPingPong) })
15 t.Run("RacyRead", func(t *testing.T) { timeoutWrapper(t, mp, testRacyRead) })
16 t.Run("RacyWrite", func(t *testing.T) { timeoutWrapper(t, mp, testRacyWrite) })
17 t.Run("ReadTimeout", func(t *testing.T) { timeoutWrapper(t, mp, testReadTimeout) })
18 t.Run("WriteTimeout", func(t *testing.T) { timeoutWrapper(t, mp, testWriteTimeout) })
19 t.Run("PastTimeout", func(t *testing.T) { timeoutWrapper(t, mp, testPastTimeout) })
20 t.Run("PresentTimeout", func(t *testing.T) { timeoutWrapper(t, mp, testPresentTimeout) })
21 t.Run("FutureTimeout", func(t *testing.T) { timeoutWrapper(t, mp, testFutureTimeout) })
22 t.Run("CloseTimeout", func(t *testing.T) { timeoutWrapper(t, mp, testCloseTimeout) })
23 t.Run("ConcurrentMethods", func(t *testing.T) { timeoutWrapper(t, mp, testConcurrentMethods) })