Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

25 lignes
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. }