test: simplify test

This commit is contained in:
ICKelin
2021-05-01 08:03:46 +08:00
parent 257bab48cd
commit 6b97a94298
2 changed files with 1 additions and 30 deletions

View File

@@ -3,7 +3,7 @@
set -e
echo "" > coverage.txt
for d in $(go list ./... | grep -v vendor); do
for d in $(go list ./... | grep -v pkg/logs); do
go test -race -coverprofile=profile.out -covermode=atomic $d -v
if [ -f profile.out ]; then
cat profile.out >> coverage.txt

View File

@@ -85,32 +85,3 @@ func TestTCPEcho128B(t *testing.T) {
bufsize := 1024
runEcho(t, bufsize, numconn)
}
func TestTCPEcho256B(t *testing.T) {
numconn := 256
bufsize := 1024
runEcho(t, bufsize, numconn)
}
func TestTCPEcho512B(t *testing.T) {
numconn := 512
bufsize := 1024
runEcho(t, bufsize, numconn)
}
func TestTCPEcho1K(t *testing.T) {
numconn := 1024
bufsize := 1024
runEcho(t, bufsize, numconn)
}
func TestTCPEcho2K(t *testing.T) {
numconn := 1024 * 2
bufsize := 1024
runEcho(t, bufsize, numconn)
}
func TestUDPPProxy(t *testing.T) {}
func BenchmarkTCPProxy(t *testing.B) {}
func BenchmarkUDPProxy(t *testing.B) {}