mirror of
https://github.com/ICKelin/opennotr.git
synced 2025-09-26 20:01:13 +08:00
test: simplify test
This commit is contained in:
@@ -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
|
||||
|
@@ -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) {}
|
||||
|
Reference in New Issue
Block a user