選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

25 行
745 B

  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. // +build !go1.7
  5. package nettest
  6. import "testing"
  7. func testConn(t *testing.T, mp MakePipe) {
  8. // Avoid using subtests on Go 1.6 and below.
  9. timeoutWrapper(t, mp, testBasicIO)
  10. timeoutWrapper(t, mp, testPingPong)
  11. timeoutWrapper(t, mp, testRacyRead)
  12. timeoutWrapper(t, mp, testRacyWrite)
  13. timeoutWrapper(t, mp, testReadTimeout)
  14. timeoutWrapper(t, mp, testWriteTimeout)
  15. timeoutWrapper(t, mp, testPastTimeout)
  16. timeoutWrapper(t, mp, testPresentTimeout)
  17. timeoutWrapper(t, mp, testFutureTimeout)
  18. timeoutWrapper(t, mp, testCloseTimeout)
  19. timeoutWrapper(t, mp, testConcurrentMethods)
  20. }