From 6b97a94298269c0d61dc59656e23c8d0686a115b Mon Sep 17 00:00:00 2001 From: ICKelin Date: Sat, 1 May 2021 08:03:46 +0800 Subject: [PATCH] test: simplify test --- coverage.sh | 2 +- opennotrd/test/plugin_test.go | 29 ----------------------------- 2 files changed, 1 insertion(+), 30 deletions(-) diff --git a/coverage.sh b/coverage.sh index 7d7a59a..bfb93b0 100755 --- a/coverage.sh +++ b/coverage.sh @@ -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 diff --git a/opennotrd/test/plugin_test.go b/opennotrd/test/plugin_test.go index 54476bd..3f44062 100644 --- a/opennotrd/test/plugin_test.go +++ b/opennotrd/test/plugin_test.go @@ -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) {}