]> Cypherpunks repositories - gostls13.git/commit
net: add test for Conn, PacketConn and Listener
authorMikio Hara <mikioh.mikioh@gmail.com>
Sun, 21 Oct 2012 21:17:51 +0000 (17:17 -0400)
committerRuss Cox <rsc@golang.org>
Sun, 21 Oct 2012 21:17:51 +0000 (17:17 -0400)
commit4545dc6a6953b2be6d0d50719ad165d46278d9bf
treeddeb0be5ab9bc3bf258d296ad31208bafe671db6
parent922c0b47557db7d686bfebe0e128a7a1dd6116e3
net: add test for Conn, PacketConn and Listener

I just realized that there is no good place for adding
exposed function or method tests because server, unicast
and multicast_test.go do test complicated multiple test
objects, platform behaviros, protocol behaviors and API,
at the same time. Perhaps splitting them into per test
object might be better, so this CL provides tests focused
on API.

R=rsc
CC=gobot, golang-dev
https://golang.org/cl/6501057
src/pkg/net/conn_test.go [new file with mode: 0644]
src/pkg/net/packetconn_test.go [new file with mode: 0644]
src/pkg/net/protoconn_test.go [new file with mode: 0644]