You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
1.3 KiB

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()
}