OSDN Git Service

new repo
[bytom/vapor.git] / vendor / golang.org / x / net / nettest / conntest_go16.go
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.
4
5 // +build !go1.7
6
7 package nettest
8
9 import "testing"
10
11 func testConn(t *testing.T, mp MakePipe) {
12         // Avoid using subtests on Go 1.6 and below.
13         timeoutWrapper(t, mp, testBasicIO)
14         timeoutWrapper(t, mp, testPingPong)
15         timeoutWrapper(t, mp, testRacyRead)
16         timeoutWrapper(t, mp, testRacyWrite)
17         timeoutWrapper(t, mp, testReadTimeout)
18         timeoutWrapper(t, mp, testWriteTimeout)
19         timeoutWrapper(t, mp, testPastTimeout)
20         timeoutWrapper(t, mp, testPresentTimeout)
21         timeoutWrapper(t, mp, testFutureTimeout)
22         timeoutWrapper(t, mp, testCloseTimeout)
23         timeoutWrapper(t, mp, testConcurrentMethods)
24 }