package netProgram import "testing" func TestTcpServer(t *testing.T) { TcpServer() } func TestTcpClient(t *testing.T) { TcpClient() } func TestTcpTimeoutClient(t *testing.T) { TcpTimeoutClient() } func TestTcpBacklogServer(t *testing.T) { TcpBacklogServer() } func TestTcpBacklogClient(t *testing.T) { TcpBacklogClient() } func TestTcpServerRW(t *testing.T) { TcpServerRW() } func TestTcpClientRW(t *testing.T) { TcpClientRW() } // Wirte方法测试 func TestTcpW(t *testing.T) { TcpW() } func TestTcpWClient(t *testing.T) { TcpWClient() } // 并发读写的测试 func TestTcpServerRWConcurrency(t *testing.T) { TcpServerRWConcurrency() } func TestTcpClientRWConcurrency(t *testing.T) { TcpClientRWConcurrency() } // 格式化消息的测试 func TestTcpServerFormat(t *testing.T) { TcpServerFormat() } func TestTcpClientFormat(t *testing.T) { TcpClientFormat() } // 短连接测试 func TestTcpServerSort(t *testing.T) { TcpServerSort() } func TestTcpClientSort(t *testing.T) { TcpClientSort() } // 长连接下的HeartBeat func TestTcpServerHB(t *testing.T) { TcpServerHB() } func TestTcpClientHB(t *testing.T) { TcpClientHB() } // 连接池测试 func TestTcpServerPool(t *testing.T) { TcpServerPool() } func TestTcpClientPool(t *testing.T) { TcpClientPool() } // 粘包测试 func TestTcpServerSticky(t *testing.T) { TcpServerSticky() } func TestTcpClientSticky(t *testing.T) { TcpClientSticky() } // 粘包编解码器解决测试 func TestTcpServerCoder(t *testing.T) { TcpServerCoder() } func TestTcpClientCoder(t *testing.T) { TcpClientCoder() } // 测试TCP专用方法 func TestTcpServerSpecial(t *testing.T) { TcpServerSpecial() } func TestTcpClientSpecial(t *testing.T) { TcpClientSpecial() } func TestTCPFileServer(t *testing.T) { TCPFileServer() } func TestTCPFileClient(t *testing.T) { TcpFileClient() }