]> Cypherpunks repositories - gostls13.git/commit
net: add missing File{Conn,Listener,PacketConn} read/write tests
authorMikio Hara <mikioh.mikioh@gmail.com>
Mon, 7 Dec 2015 08:45:19 +0000 (17:45 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Mon, 14 Dec 2015 03:14:53 +0000 (03:14 +0000)
commit6a1c2a59898ada6403cc1f4937c0fe9c271cb363
tree324e20b06e23b5e8953a1fca9bdad0195c9869ff
parenta0288928824a56e4e04bfcd025e444ae762a031b
net: add missing File{Conn,Listener,PacketConn} read/write tests

At present, the series of File{Conn,Listener,PacketConn} APIs are the
only way to configure platform-specific socket options such as
SO_REUSE{ADDR,PORT}, TCP_FASTOPEN. This change adds missing test cases
that test read and write operations on connections created by File APIs
and removes redundant parameter tests which are already tested in
server_test.go.

Also adds comment on full stack test cases for IPConn.

Fixes #10730.

Change-Id: I67abb083781b602e876f72a6775a593c0f363c38
Reviewed-on: https://go-review.googlesource.com/17476
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/file_test.go